mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-21 19:34:40 +08:00
Update OutputCacheFilter.cs
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user