mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-08-01 18:13:08 +08:00
parent
6f22578f5b
commit
24d48c72c2
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user