HighTechTalks DotNet Forums  

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

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss How to remove Vary:* header in ASP.Net 1.1 caching? in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Snowy
 
Posts: n/a

Default How to remove Vary:* header in ASP.Net 1.1 caching? - 07-02-2006 , 04:18 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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.