From d995897b91fe1f7e7de936bbafc1943dab4286c7 Mon Sep 17 00:00:00 2001 From: James South Date: Fri, 26 Dec 2014 15:47:32 +0000 Subject: [PATCH] Fixing serving of images when etags are not present. Former-commit-id: 232567bc535fcea1e593e6bac3650a689f60f501 Former-commit-id: 8102568df1447a27f2f23950075482428f381090 --- src/ImageProcessor.Web/HttpModules/ImageProcessingModule.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ImageProcessor.Web/HttpModules/ImageProcessingModule.cs b/src/ImageProcessor.Web/HttpModules/ImageProcessingModule.cs index b30d37d49..de1a64382 100644 --- a/src/ImageProcessor.Web/HttpModules/ImageProcessingModule.cs +++ b/src/ImageProcessor.Web/HttpModules/ImageProcessingModule.cs @@ -436,9 +436,7 @@ namespace ImageProcessor.Web.HttpModules context.Items[CachedResponseFileDependency] = new List { cachedPath }; } - string incomingEtag = context.Request.Headers["If" + "-None-Match"]; - - if (incomingEtag != null && !isNewOrUpdated) + if (!isNewOrUpdated) { // Set the Content-Length header so the client doesn't wait for // content but keeps the connection open for other requests. @@ -478,7 +476,6 @@ namespace ImageProcessor.Web.HttpModules /// /// This will make the browser and server keep the output /// in its cache and thereby improve performance. - /// /// /// /// the HttpContext object that provides