Forcining An ASP page to expire

Forcining An ASP page to expire

am 26.01.2007 14:51:05 von Sam

HI - I have the following asp page and no matter what I try every time
I exit this page and click the back button the page remains in cache.

Any suggestions?

thanks

<%
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"


Response.write("

name='login'>")
Response.write(" name='uidCallingWebPage' />")
Response.write("")

Response.write("")
Response.write("")
Response.write("")
Response.write("")
Response.write("")
Response.write("")
Response.write("")
Response.write("")
Response.write("")
Response.write("
Login: autocomplete='Off' >
Password: >
")
Response.write("
>
")

Response.write("
")

%>

Re: Forcining An ASP page to expire

am 26.01.2007 15:08:42 von Dave Anderson

Sam wrote:
> I have the following asp page and no matter what I try every
> time I exit this page and click the back button the page remains
> in cache.

Cache and History are two different things. The browser is not required to
send a [new request] when the user traverses the history list, and
cache-control applies only to [new requests].

As undesirable as it may seem to you, this behavior is by design.



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.