[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.caching

How to remove Vary:* header in ASP.Net 1.1 caching?

Snowy

7/2/2006 8:18:00 PM

ASP.Net 1.1 outputCaching sends out response header "Vary: *" when
VaryByParam is used. This is annoying since IE refuses to cache the content
on the browser side with this header. For caching location set to Public or
ServerAndPrivate, which means cache is enabled for both server-side and the
browser, this "feature" (or bug?) defeats the purpose.

ASP.Net 2.0 offers a solution by setting "omitVaryStar" attribute to false
in the <outputCache> element under <caching>, which is a new element added in
the configuration file.

I have been using Request.PathInfo as a workaround in ASP.net 1.1 to avoid
using parameters in query string yet still take advantage of VaryByParam. But
that's just a workaround. Is there a real solution to the problem in ASP.Net
1.1?

Thanks