Refesh button and the cache

  • Thread starter Thread starter Any old Joe
  • Start date Start date
A

Any old Joe

Hello

I know that the refresh button is one of those things that is largely out
of our control and makes working with browsers that bit more problematic
but....If anyone could shed some light on what is going on here I would be
grateful -
I have an aspx page that I have set so that it is not cached at the client
side and do not go through a proxy server, yet when the user clicks on the
refresh button instead of the last requested page getting requested again,
a previous page that was requested several postbacks ago is requested
again. This means that the request is out of synch with the session state
and so the page crashes. I don't mind the refresh, but I can't work out why
it is not requesting the previous page again. Does anyone have any ideas??
Thanks in advance

Joe
 
No I am not, but the page it returns to is when an IFRAME inserted in the
page uses the execScript function on its parent page to call the postback
script. Do you think that might have some bearing on it??
What I can't understand is where IE is caching my pages to use to do the
refresh, because it clearly is not the same place as the temporary internet
files cache and doesn't seem to repect the no-cache attribute on my
headers!!
 
You got me, Joe. You might have mentioned the IFrame in the beginning! I
would re-examine the code. Not sure which page would get refreshed in that
case, depending on which page has the focus. I try to avoid frames and
IFrames. Tricky stuff, and usually totally unnecessary.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 
Back
Top