472,352 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,352 software developers and data experts.

Forcining An ASP page to expire

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("<form action='communicator.asp' method='post'
name='login'>")
Response.write(" <input type='hidden' value='1'
name='uidCallingWebPage' />")
Response.write("<table border=0>")

Response.write("<tr>")
Response.write("<td>Login:</td>")
Response.write("<td><input type='text' name='id' size='20'
autocomplete='Off' ></td>")
Response.write("</tr>")
Response.write("<tr>")
Response.write("<td>Password:</td>")
Response.write("<td><input type='password' name='password' size='20'
></td>")
Response.write("</tr>")
Response.write("<tr>")
Response.write("</table>")
Response.write("<table><tr><td><input type='submit' value='Save'
></td></tr></table>")
Response.write("</form>")

%>

Jan 26 '07 #1
1 2209
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.
Jan 26 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rahul Chatterjee | last post by:
Hello All I have a web pagewhich queries a db and displays information on the subsequent page. On the subsequent page if I click back to previous...
2
by: James | last post by:
I've been to websites where if I navigate off a form, trying to get back to it by hitting the back button gives me a page which says "Warning, page...
4
by: TCORDON | last post by:
How can I expire a page so if a user click back for example the page shows message "This Page has expired" or better yet a peronalized "Page...
2
by: Jason Kendall | last post by:
I've noticed that my ASP.Net projects suffer from being cached locally when my users' broswers are set to automatically check for newer pages. ...
1
by: umamy | last post by:
Hi, I am writing code to do the followin: - user clicks a link - the page reloads and sets a cookie with a js function in the header. The...
0
by: Charles Mifsud | last post by:
Hi, We have an ASP.NET 2.0 web page with user authentication. We have a page which contains a Multiview with a number of different views. Each...
3
by: bbgraph | last post by:
Does anyone have a suggestion for doing this with a date function rather than the typical content=(number of seconds) function? I have an events...
0
by: Walter Psaila | last post by:
Hi, We have an ASP.NET 2.0 web page with user authentication. We have a page which contains a Multiview with a number of different views. Each...
0
by: aspineux | last post by:
setacl and getacl look to be already "Cyrus" specific (according the doc), why not to extend imaplib a little bit more ? Here are some code I...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.