Caching of aspx pages - Firefox does - IE NOT

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there any posibillity to cache aspx (ASP.NET) pages in IE (default
settings, automatic) on client side? We try this very hard in any way the RFC
proposes (Expiration date, EntityTag, <meta http-equiv="cache-control"
content="private"> etc.). No Way. Does IE work with MIME-Types (ASPX) to
decide about caching? Does IE "understand" the URL (...aspx...)?

Example page: (no params, no ?)
http://www.erlangen.de/de/Desktopdefault.aspx/tabid-6/

As e.g. fiddler shows: page is cached in most browsers - but not in IE?

Is this a feature or bug? What about IE7?

Any help welcome, because most visitors use IE...

Frank Daske
(e-mail address removed)
 
Frank said:
Is there any posibillity to cache aspx (ASP.NET) pages in IE (default
settings, automatic) on client side? We try this very hard in any way the RFC
proposes (Expiration date, EntityTag, <meta http-equiv="cache-control"
content="private"> etc.). No Way. Does IE work with MIME-Types (ASPX) to
decide about caching? Does IE "understand" the URL (...aspx...)?

Example page: (no params, no ?)
http://www.erlangen.de/de/Desktopdefault.aspx/tabid-6/

As e.g. fiddler shows: page is cached in most browsers - but not in IE?

Is this a feature or bug? What about IE7?


If you have control over your server
arrange to stop it from sending the Vary: *
and then retry.


Good luck

Robert Aldwinckle
---
 
Thanks Robert, avoid vary: * header can help. But how to do this? We work
with ASP.NET ServerSide Page Caching. There we have to use the "Vary By
Custom" method, because we take User, Browser and URL (No Params) into
account. We deliver pages with Cache = Private, possibly different pages for
different users. Question: Is there any Posibility to remove the
(automatically inserted by .asp.net) vary * ?

Or do I have to wite a HTTP-Handler for this :-(

Is this behavior (no cache for vary *) changed in IE7?

Best Regards
Frank
 
(Cross-post from ie6.browser)

Frank said:
Thanks Robert, avoid vary: * header can help. But how to do this? We work
with ASP.NET ServerSide Page Caching. There we have to use the "Vary By
Custom" method, because we take User, Browser and URL (No Params) into
account. We deliver pages with Cache = Private, possibly different pages for
different users. Question: Is there any Posibility to remove the
(automatically inserted by .asp.net) vary * ?


Could you make it Vary: User-Agent instead?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/IETechCol/dnwebgen/IE_Fiddler2.asp

<quote>
The Vary header signals to a cache that a response is valid for reuse only
under certain circumstances. For example, use Vary: User-Agent to direct
that the current response may only be reused for future requests sending
the same User-Agent header. The directive Vary: * is equivalent to
Cache-Control: no-cache.
</quote>


http://support.microsoft.com/?kbid=824847

<quote>
Internet Explorer does not fully implement the VARY header per Requests
for Comments (RFC) 2616. The Internet Explorer implementation of VARY
is that it does not cache any data except for Vary-Useragent.
</quote>


(Google web search for
vary header cache (explorer OR IE6) inurl:microsoft
)


Or do I have to wite a HTTP-Handler for this :-(

Is this behavior (no cache for vary *) changed in IE7?


I doubt it.

http://blogs.msdn.com/ie/search.aspx?q=vary+&p=1


I suggest you try a web developer newsgroup
with these new questions. I'm cross-posting to one now
in case somebody cares to respond to you here.


Good luck

Robert
---
 
Back
Top