Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: How to prevent Internet Explorer from locally caching pages

From: Adrian Caneva <acaneva(at)nexttech.com.ar>
Date: Fri Apr 04 2003 - 16:44:25 EST
('binary' encoding is not supported, stored as-is)
In-Reply-To: <Pine.LNX.4.44.0304032032030.886-100000@localhost.localdomain>

Thanks for your quick responses!
After some research I believe I've found an answer.

Usually web applications send 3 basic headers to prevent caching:

Cache-Control : no-cache
//HTTP 1.1 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.1

Pragma : no-cache;
//HTTP 1.0 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.32 for proxies

Expires : -1

Maybe also, some other headers like (cache-control, private). As Liam correctly pointed out (Expire, -1) header is not mandatory. And should be ignored for history retrieving methods if the page is in local cache.
But the page should not be in local cache in the first place because (cache-control, no-cache) header would prevent any intermediate cache from storing it.
The problem with these statement is that is an HTTP/1.1 header. Internet Explorer would evaluate this header only if it comes in an HTTP/1.1 response.
If a Proxy server HTTP/1.0 like Squid is between the web application and the browser, MSIE would receive this header into an HTTP/1.0 response block and will ignore it.
No matter if the web server at the origin is HTTP/1.1 compliant. If the proxy is not in the chain, MSIE behaves as expected not caching locally the response.
Additionaly, Internet Explorer needs advanced setting "Use HTTP 1.1 through proxy connections" to place HTTP 1.1 requests behind a proxy. Microsoft says that for HTTP 1.0 servers (pragma, no cache) header would prevent MSIE from storing local copies of the response if it comes from a secure site. And this is the simplistic workaround.

Best regards and thanks again,

Adrian Caneva

Do you need help?X

>FWIW, IE's behaviour seems to be in agreement with the HTTP/1.1
Received on Fri Apr 4 16:56:27 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:50 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library