简体   繁体   中英

ASP.NET Output Cache not working on IIS7.5

I'm using the output cache feature for a page on my ASP.NET 3.5 website and it works fine on my local machine (Win XP / IIS5.1) but it won't cache when running on the development server (IIS7.5).

The code I'm using is below...

<%@ OutputCache Duration="3600" Location="Server" VaryByParam="*" %>

Does anyone know how to get output caching to work on IIS7.5? I've searched through StackOverflow and Google and can't find anyone that's having similar issues.

Any help would be much appreciated.

Cheers,

Tim.

Are you rewriting the URL in global.asax? It happens due to that.

OR

Have you tried switching Integrated mode to classic mode as Integrated mode overrides the settings which are working in IIS 6.0 and they are not working in IIS 7.5.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM