Browse Source

Fixing serving of images when etags are not present.

Former-commit-id: ab132d380b0123c44237afe0990ccb2280b7b601
Former-commit-id: 29fb032f841db19d8d780c4a4b897898ca5d7209
af/merge-core
James South 11 years ago
parent
commit
45c71b58e6
  1. 5
      src/ImageProcessor.Web/HttpModules/ImageProcessingModule.cs

5
src/ImageProcessor.Web/HttpModules/ImageProcessingModule.cs

@ -436,9 +436,7 @@ namespace ImageProcessor.Web.HttpModules
context.Items[CachedResponseFileDependency] = new List<string> { 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
/// <summary>
/// This will make the browser and server keep the output
/// in its cache and thereby improve performance.
/// <see href="http://en.wikipedia.org/wiki/HTTP_ETag"/>
/// </summary>
/// <param name="context">
/// the <see cref="T:System.Web.HttpContext">HttpContext</see> object that provides

Loading…
Cancel
Save