|
|
@ -436,9 +436,7 @@ namespace ImageProcessor.Web.HttpModules |
|
|
context.Items[CachedResponseFileDependency] = new List<string> { cachedPath }; |
|
|
context.Items[CachedResponseFileDependency] = new List<string> { cachedPath }; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
string incomingEtag = context.Request.Headers["If" + "-None-Match"]; |
|
|
if (!isNewOrUpdated) |
|
|
|
|
|
|
|
|
if (incomingEtag != null && !isNewOrUpdated) |
|
|
|
|
|
{ |
|
|
{ |
|
|
// Set the Content-Length header so the client doesn't wait for
|
|
|
// Set the Content-Length header so the client doesn't wait for
|
|
|
// content but keeps the connection open for other requests.
|
|
|
// content but keeps the connection open for other requests.
|
|
|
@ -478,7 +476,6 @@ namespace ImageProcessor.Web.HttpModules |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// This will make the browser and server keep the output
|
|
|
/// This will make the browser and server keep the output
|
|
|
/// in its cache and thereby improve performance.
|
|
|
/// in its cache and thereby improve performance.
|
|
|
/// <see href="http://en.wikipedia.org/wiki/HTTP_ETag"/>
|
|
|
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="context">
|
|
|
/// <param name="context">
|
|
|
/// the <see cref="T:System.Web.HttpContext">HttpContext</see> object that provides
|
|
|
/// the <see cref="T:System.Web.HttpContext">HttpContext</see> object that provides
|
|
|
|