From: DTB-K on
Hi all,

I'm trying to force a particular page to expire.

After searching around and finding numerous different (although similar) solutions I'm left with the following

Immediately underneath the <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> at the top of the page is:

<%
'date in the past...
Response.AddHeader "Expires", "Mon, 26 Jul 1997 05:00:00 GMT"
'always modified
Response.AddHeader "Last-Modified", Now & " GMT"
'HTTP/1.1
Response.AddHeader "Cache-Control", "no-cache, must-revalidate"
'HTTP/1.0
Response.AddHeader "Pragma", "no-cache"
'last ditch attempt!
Response.Expires = -1
%>

I also have the following between the <head></head> tags.:

<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />



The page still works fine and does NOT expire.


To clarify, the page takes information submitted to it from the previous page, calculates (by refering to an Access Database) what
records are applicable to the info submitted (in this case working out a quotation), saves the quote to the database, emails the
customer the quote, and then redirects the user to a page displaying the quote onscreen. If the user presses back, the whole
process starts again and again and again (depending how many times they press back and let the page calculate, save, email the quote
and then redirect (unless they press back twice to bypass of course.)

I want to ensure that when they press "back", they get a message telling them the page has expired.

What am I doing wrong?