Wrox Home  
Search P2P Archive for: Go

  Return to Index  

application_development thread: problem with caching pages in ASP3.0...


Message #1 by Quinton Sheppard <quintons@k...> on Mon, 10 Dec 2001 16:06:32 -0000
How can I stop a browser from caching an asp generated HTML page? I have

used 'Response.Expires = -1000' to make sure it doesn't cache the page, but

it does not seem to work.



I am doing this:

1) open page login.asp

2) if login details are incorrect, refresh page and show JavaScript alert

message.

3) on details being correct, go to page referred to in querystring TARGET



when the user clicks on the back button to re-enter the login.asp page, the

user then see's the alert box. This seems very user un-friendly. Can I get

the browser to completely re-load the login.asp page? so the alert message

does not appear when the user clicks on the back button?



Many thanks in advance,

Quinton.





Confidentiality:  This e-mail and its attachments are intended for the above

named only and may be confidential.  If they have come to you in error you

must take no action based on them, nor must you copy or show them to anyone;

please reply to this e-mail and highlight the error. 



Security Warning:  Please note that this e-mail has been created in the

knowledge that Internet e-mail is not a 100% secure communications medium.

We advise that you understand and observe this lack of security when

e-mailing us. 



Viruses:  Although we have taken steps to ensure that this e-mail and

attachments are free from any virus, we advise that in keeping with good

computing practice the recipient should ensure they are actually virus free.





Message #2 by "Prasad Naik \(XECOM IT\)" <Prasad.Naik@x...> on Tue, 11 Dec 2001 09:11:07 +0530
Hi,



Use 'Response.Expires = 0'. It will force the page to be reloaded every

time.



Best Regards,

Prasad



-----Original Message-----

From: Quinton Sheppard [mailto:quintons@k...] 

Sent: Monday, December 10, 2001 9:37 PM

To: Application Development

Subject: [application_development] problem with caching pages in

ASP3.0...



How can I stop a browser from caching an asp generated HTML page? I have

used 'Response.Expires = -1000' to make sure it doesn't cache the page,

but

it does not seem to work.



I am doing this:

1) open page login.asp

2) if login details are incorrect, refresh page and show JavaScript

alert

message.

3) on details being correct, go to page referred to in querystring

TARGET



when the user clicks on the back button to re-enter the login.asp page,

the

user then see's the alert box. This seems very user un-friendly. Can I

get

the browser to completely re-load the login.asp page? so the alert

message

does not appear when the user clicks on the back button?



Many thanks in advance,

Quinton.





Confidentiality:  This e-mail and its attachments are intended for the

above

named only and may be confidential.  If they have come to you in error

you

must take no action based on them, nor must you copy or show them to

anyone;

please reply to this e-mail and highlight the error. 



Security Warning:  Please note that this e-mail has been created in the

knowledge that Internet e-mail is not a 100% secure communications

medium.

We advise that you understand and observe this lack of security when

e-mailing us. 



Viruses:  Although we have taken steps to ensure that this e-mail and

attachments are free from any virus, we advise that in keeping with good

computing practice the recipient should ensure they are actually virus

free.










$subst('Email.Unsub').




  Return to Index