asp_databases thread: Page Caching/Expiry WAS RE: ticking a checkbox with JavaScript is a c- ondition pulled from a database is met
You might want to add a SetHeaders() routine or similar to your pages. This
routine will then set HTTP headers for the page (including those to prevent
page caching):
<%
Sub SetHeaders( _
)
Response.ExpiresAbsolute = #1/1/1980#
Response.CacheControl = "private"
Response.AddHeader "pragma", "no-cache"
End Sub
%>
Include this on every page, and call SetHeaders() as required.
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Dean" <spinout@i...>
Subject: [asp_databases] RE: ticking a checkbox with JavaScript is a c-
ondition pulled from a database is met
: I've managed to get it working.
: The reason I thought adding RsArea.MoveFirst wasn't doing anything
: different to the problem I had before I added it was obviously a cache
: problem because I cleared my cache, re-loaded the new version of the ASP
: document with the RsArea.MoveFirst added... and whaddya know! It worked!
: So technically the problem was I didn't have the MoveFirst command before
: each additional While loop.... then when Peter pointed this out and I
: added it, that was no longer the problem, it was as simple as emptying out
: my browser cache.
:
: Thanks again to everyone who offered me assistance!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~