开发者

OutputCache - cache only if no params in GET

开发者 https://www.devze.com 2023-02-06 01:33 出处:网络
Wha开发者_JAVA技巧t parameters to use in OutputCache if you want to Cache in case of no params on a page, in other cases not caching?You can call HttpCachePolicy.SetNoServerCaching in the HttpApplicat

Wha开发者_JAVA技巧t parameters to use in OutputCache if you want to Cache in case of no params on a page, in other cases not caching?


You can call HttpCachePolicy.SetNoServerCaching in the HttpApplication.PostMapRequestHandler event.

See Making ASP.NET Output Cache Work with Post-Back, you can use their first example to check for querystring parameters instead of http method.

0

精彩评论

暂无评论...
验证码 换一张
取 消