Disabled ASP.NET OutputCacheModule in Web.config.

This commit is contained in:
Daniel Stolt
2015-04-10 22:35:47 +02:00
parent 8fbc1e41f3
commit 8b1f00e31c
3 changed files with 6 additions and 4 deletions
@@ -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);
+2 -1
View File
@@ -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>