Show with an example how to Cache different version of same page using ASP.NET Cache object
Show with an example how to Cache different version of same page using ASP.NET Cache object
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Santhosh NPosted Dec 29, 2009, 9:45 AM
1) the required VaryByParam attribute enables varying the cached output depending on the GET or POST parameters passed with the request.
2) the VaryByHeader attribute enables varying the cached output depending on the HTTP header associated with the request.
3) the VaryByCustom attribute enables varying the output cache by browser type or by a custom string that you define.
You can check the samples here
http://msdn.microsoft.com/en-us/kb/kb00323290.aspx
and
http://asp.dotnetheaven.com/aspnet/doc/caching/output.aspx