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开发者_StackOverflow中文版 / 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.
精彩评论