开发者

OutputCache - cache only if no params in GET

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜