mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
@@ -422,7 +422,9 @@ namespace Orchard.OutputCache.Filters {
|
||||
|
||||
// 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
|
||||
response.Cache.SetETag(cacheItem.GetHashCode().ToString(CultureInfo.InvariantCulture));
|
||||
if (response.Headers.Get("ETag") == null) {
|
||||
response.Cache.SetETag(cacheItem.GetHashCode().ToString(CultureInfo.InvariantCulture));
|
||||
}
|
||||
|
||||
response.Cache.SetOmitVaryStar(true);
|
||||
|
||||
|
Reference in New Issue
Block a user