mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Disabling user mode output cache
This commit is contained in:
@@ -487,10 +487,12 @@ namespace Orchard.OutputCache.Filters {
|
||||
response.Cache.SetMaxAge(maxAge);
|
||||
}
|
||||
|
||||
response.Cache.VaryByParams["*"] = true;
|
||||
response.DisableUserCache();
|
||||
|
||||
// keeping this examples for later usage
|
||||
// response.Cache.VaryByParams["*"] = true;
|
||||
// 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
|
||||
@@ -500,8 +502,6 @@ namespace Orchard.OutputCache.Filters {
|
||||
}
|
||||
}
|
||||
|
||||
response.Cache.SetOmitVaryStar(true);
|
||||
|
||||
if (_varyQueryStringParameters != null) {
|
||||
foreach (var queryStringParam in _varyQueryStringParameters) {
|
||||
response.Cache.VaryByParams[queryStringParam] = true;
|
||||
|
Reference in New Issue
Block a user