Update OutputCacheFilter.cs

This commit is contained in:
jtkech
2016-02-05 00:04:20 +01:00
parent 787b5d89b3
commit 0e3e7f0c90

View File

@@ -503,13 +503,13 @@ namespace Orchard.OutputCache.Filters {
maxAge = TimeSpan.Zero;
}
response.Cache.SetCacheability(HttpCacheability.Public);
response.Cache.SetOmitVaryStar(true);
response.Cache.SetMaxAge(maxAge);
}
// Keeping this example for later usage.
// response.DisableUserCache();
// response.DisableKernelCache();
// response.Cache.SetOmitVaryStar(true);
// An ETag is a string that uniquely identifies a specific version of a component.
// We use the cache item to detect if it's a new one.
@@ -628,4 +628,4 @@ namespace Orchard.OutputCache.Filters {
public class ViewDataContainer : IViewDataContainer {
public ViewDataDictionary ViewData { get; set; }
}
}
}