HighTechTalks DotNet Forums  

RE: ServerAndClient Caching

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


Discuss RE: ServerAndClient Caching in the ASP.net Caching forum.



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

Default RE: ServerAndClient Caching - 02-13-2007 , 05:17 AM






Hi, I too have seen the same problem and raised it as a bug with MS. (It also
appears in the .NET 2.0 Framework).

What is happening is that under this scenario the Vary: * HTTP header is
being returned to the browser. This completely invalidates any client
caching. It does not happen for Location="Client" or Location="Any".

My bug report is here:
http://connect.microsoft.com/VisualS...dbackID=254940

There is a workaround, but unfortunately it must be added to every page. (Or
you could do it via an HTTPModule for every page).
Add the line:

Response.Cache.SetOmitVaryStar(true);

and this will fix it!

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.