From 45c71b58e676f4358cb7344669bd301c32fd81be 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: ab132d380b0123c44237afe0990ccb2280b7b601 Former-commit-id: 29fb032f841db19d8d780c4a4b897898ca5d7209 --- 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