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.
精彩评论