Disallowing a page to be cached

D

David C. Holley

Is there a way to disallow a page from being cached? I'm about to
introduce functionality that will not work properly if the person uses
the 'BACK' button on their browser and would like to ensure that they
cannot. I tried using <% response.expires = -1 %> thinking that it would
work, however it only ensures that another request has to be sent to the
server. Any ideas other than simply giving the user a message NOT to
use the back button?

Here's a link to the functionality. It uses session variables to produce
a dynamic rate quote. (Tip use WDW in the Description/Keyword search).

http://www.gatewayorlando.com/content/rateQuoteSearch_Submit.asp
 
B

Bob Barrows

David said:
Is there a way to disallow a page from being cached? I'm about to
introduce functionality that will not work properly if the person uses
the 'BACK' button on their browser and would like to ensure that they
cannot. I tried using <% response.expires = -1 %> thinking that it
would work, however it only ensures that another request has to be
sent to the server. Any ideas other than simply giving the user a
message NOT to use the back button?

Here's a link to the functionality. It uses session variables to
produce a dynamic rate quote. (Tip use WDW in the Description/Keyword
search).

http://www.gatewayorlando.com/content/rateQuoteSearch_Submit.asp

http://www.aspfaq.com/show.asp?id=2017

HTH,
Bob Barrows
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top