mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-27 04:19:04 +08:00
Disabled ASP.NET OutputCacheModule in Web.config.
This commit is contained in:
@@ -111,7 +111,9 @@
|
||||
</system.web>
|
||||
|
||||
<system.webServer>
|
||||
<modules runAllManagedModulesForAllRequests="false"/>
|
||||
<modules runAllManagedModulesForAllRequests="false">
|
||||
<remove name="OutputCache"/>
|
||||
</modules>
|
||||
<handlers accessPolicy="Script">
|
||||
<!-- Clear all handlers, prevents executing code file extensions or returning any file contents. -->
|
||||
<clear/>
|
||||
|
||||
@@ -482,9 +482,8 @@ namespace Orchard.OutputCache.Filters {
|
||||
response.Cache.SetMaxAge(maxAge);
|
||||
}
|
||||
|
||||
response.DisableUserCache();
|
||||
|
||||
// Keeping this example for later usage.
|
||||
// response.DisableUserCache();
|
||||
// response.DisableKernelCache();
|
||||
// response.Cache.SetOmitVaryStar(true);
|
||||
|
||||
|
||||
@@ -91,9 +91,10 @@
|
||||
</system.web>
|
||||
|
||||
<system.webServer>
|
||||
<!-- Prevent iis from only allowing integrated mode configuration. -->
|
||||
<!-- Prevent IIS from only allowing integrated mode configuration. -->
|
||||
<validation validateIntegratedModeConfiguration="false"/>
|
||||
<modules runAllManagedModulesForAllRequests="false">
|
||||
<remove name="OutputCache"/>
|
||||
<remove name="WarmupHttpModule"/>
|
||||
<add name="WarmupHttpModule" type="Orchard.WarmupStarter.WarmupHttpModule, Orchard.WarmupStarter, Version=1.8.1, Culture=neutral"/>
|
||||
</modules>
|
||||
|
||||
Reference in New Issue
Block a user