andy wix wrote:
Hi,

I have the following on the view page so I don't think I'm seeing the cached version of the page:

response.setHeader("Cache-Control","no-cache"); // HTTP 1.1
response.setHeader("Pragma","no-cache"); // HTTP 1.0
response.setDateHeader ("Expires", -1); // Prevents caching at a proxy server
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger

Have a look at Section 13.13 of RFC 2616 (http://www.ietf.org/rfc/rfc2616.txt). It makes a distinction between caching mechanisms and history mechanisms. The header fields you are setting are all related to caching. The back button is a history mechanism. The RFC states, "... a history mechanism is meant to show exactly what the user saw at the time when the resource was retrieved."


As I read this, if your browser is correctly implementing this RFC, using the back button will not re-issue a request to the server and you will see exactly what you saw last time.

-- Jeff

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to