473,395 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Refesh button and the cache

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
Nov 17 '05 #1
2 1343
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!!
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in news:ue
$i************@TK2MSFTNGP11.phx.gbl:
Are you using JavaScript "location.replace()" by any chance?


Nov 17 '05 #2
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.

"Any old Joe" <jo*@starseaford.co.uk> wrote in message
news:Xn********************************@207.46.248 .16...
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!!
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in news:ue
$i************@TK2MSFTNGP11.phx.gbl:
Are you using JavaScript "location.replace()" by any chance?

Nov 17 '05 #3

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

Similar topics

21
by: Tony Marston | last post by:
If the use of the browser's BACK button is interfering with the operation of your web application then take a look at this article entitle "Back Button Blues" ...
12
by: VB Programmer | last post by:
I know some sites will display the following message if you click on the BACK button in your browser. How do I implement this feature? Warning: Page has Expired The page you requested was...
2
by: Leszek Taratuta | last post by:
Hello, I am using the following code to prevent users to see the previous pages: Response.CacheControl = "no-cache"; Response.AddHeader( "Pragma", "no-cache" ); Response.Expires = -1; When...
29
by: Tom wilson | last post by:
I can't believe this is such an impossibility... I have an asp.net page. It accepts data through on form fields and includes a submit button. The page loads up and you fill out some stuff. ...
4
by: John Boy | last post by:
Hi, Can anyone help. This is really doing my nut in. 3 years ASP exp. and now doing .DOT which is a step in the wrong direction. Basically I am left with the code of a guy who has left. When I...
4
by: morc | last post by:
hi, is there any way to refresh the page when the user clicks back button?I have a jsp page that i need to regerenate everything everytime the user visits it. its either that or i want to...
3
by: Vivek | last post by:
Hi all, I have a problem in my web-app wherein I need to get the latest page from server on clicking of back button.. I know that it can be done by preventing/disabling the cache in jsp as ...
1
by: nileshsoni21 | last post by:
I have come across a strange behaviour in ASP or rather it could be a HTML or Browser Issue. The browser here is IE. The requirement is to re-load the page whenever user click back button of the...
0
by: Michael Nemtsev | last post by:
Hi, I need to stay on the current page even if user clicks "BACK" in browser. Opera is very stubborn in attemp of turning cached page off, and using current. Does anybody know the way how to say...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.