I tried exactly what the article said but it still does not work. It
looks like it should work. Should this page be inside of a frames page
in order to work?
The way I set up the test is that I have a page called 00.asp which has
a link to 01.asp (displayed below). 01.asp gets some records back from
the DB and outputs it. Then it displays a link to 02.asp. I follow the
link to 02.asp. Once on 02.asp I click on the back button in IE 6 and I
still get the full/cached 01.asp page and not the "Page has expired"
message. What am I doing wrong?
I did what the article said which is to use iisreset on the server and
cleared out my browser. It still does not work. Any ideas?
===============
Code: 01.asp
===============
option explicit
Response.ExpiresAbsolute = #2000-01-01#
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", "private, no-cache, must-revalidate"
dim oConn, oRS, sql
set oConn = server.createobject("adodb.connection")
oConn.open "Provider=sqloledb; Data Source=dev; Initial
Catalog=pubs;User Id=sa;Password=dewey;"
Set oRS = Server.CreateObject("ADODB.Recordset")
sql = "select * from authors"
oRS.Open sql, oConn, adOpenForwardOnly, adLockPessimistic, adCmdText
if not oRS.EOF then
do while not oRS.EOF
response.write(oRS("au_Id") & "<br>")
oRS.MoveNext
loop
end if
oRS.close
Set oRS = nothing
oConn.close
set oConn = nothing
response.write("<br><br><a href='02.asp'>to page 2</a>")