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