Show with an example how to Cache different version of same page using ASP.NET Cache object
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Santhosh NRank #4,788 · 325 reputationPosted Dec 29, 2009, 4:45 AM EST
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