Re: page expiration

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



OK. Here it is.

Put this in the page load event:  Response.Cache.SetNoStore()

This prevents the browser from caching the page, which
means I will always get the hit when the page is reloaded.

I found this info at:

http://www.codenotes.com/articles/articleAction.aspx?articleID=1022

--
kpg

"Kim Quigley" <kimquigley@xxxxxxxxxxx> wrote in message news:uykcE62cFHA.1684@xxxxxxxxxxxxxxxxxxxxxxx
# Name resolution details: file://c:\temp\328821.htm (6/17/2005 2:00:56 PM) #
The problem with the back button is an age old issue and I'm very interested to see if anyone is going to offer you a solution. When a user clicks the back button, the page doesn't reload, so no code is executed.



"kpg" <ipost@xxxxxxxxxxxxxxxx> wrote in message news:e0$2RO2cFHA.3712@xxxxxxxxxxxxxxxxxxxxxxx
Setting Response.Expires to 0 just makes it so the browser doesn't cache the page, which doesn't sound at all like the solution to your problem.

Are you saying that if someone sees a certain page, then if they refresh or return to it, you want them to see something else or be redirected?

After the user logs on I show a page that displays a list of items previously
saved. When the user picks one I redirect them to a page with the selected
data loaded to begin processing. If they hit the back button (history) of the
browser and try to revisit the item list page I want to show that it has expired.
There should be no way for them to return to this page unless they logoff
and then back on.


If the page were not cached then the request would come to the server
and I could display a message. My problem is I put a response.expires =0
and I still got the cached page. Maybe I was using it wrong. I added it to
the top of the html page before the <head>. I also tried adding a
response.expires = 0 into the page load event with the same effect (none).


Hope that clears it up.

Thanks,
kpg



.



Relevant Pages

  • Re: page numbers not printing properly
    ... Phillip: That's weird. ... It printed perfectly here from Safari (once you hit ... RELOAD enough times to get the page to display...) ... Which browser were you using? ...
    (microsoft.public.mac.office.word)
  • Re: Very poor browser cache options control
    ... would limit the Temporary Internet Files folder to 75 MB. ... the browser cannot be set (using the Temporary Internet Files ... > the browser to reload the page from the site, but when the browser is set ... > instructions and load only what has been cached, ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Very poor browser cache options control
    ... or if it always existed in Internet Explorer. ... the browser cannot be set (using the Temporary Internet Files cache ... it will still reload the pages from the ... I know there are instructions in some pages that instruct ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: using RSS to automate a browser
    ... web site which adds news articles throughout the day; ... But it would be nice to have a automated browser which would check the ... RSS feed every ten minutes or so and automatically reload the page ...
    (Debian-User)
  • Re: Very poor browser cache options control
    ... When returning to a previously viewed page, via the Back or Forward Buttons, the browser cannot be set (using the Temporary Internet Files cache setting options in the Tools Menu) to always read from the cache rather than reloading the page from the site. ... I know there are instructions in some pages that instruct the browser to reload the page from the site, but when the browser is set to "Never Check for Newer Versions of Stored Pages", it should bypass those instructions and load only what has been cached, to speed up browsing. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)