Disable public caching when querystring is present

This commit is contained in:
Sebastien Ros
2014-04-28 13:20:42 -07:00
parent 20a120c657
commit 52ec226125

View File

@@ -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);