mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Disable public caching when querystring is present
This commit is contained in:
@@ -228,6 +228,11 @@ namespace Orchard.OutputCache.Filters {
|
||||
}
|
||||
}
|
||||
|
||||
// don't enable public caching for requests with query string
|
||||
if (queryString.AllKeys.Any()) {
|
||||
_maxAge = 0;
|
||||
}
|
||||
|
||||
// compute the cache key
|
||||
_cacheKey = ComputeCacheKey(filterContext, parameters);
|
||||
|
||||
|
Reference in New Issue
Block a user