Re: Firefox reload page
From: Dave Anderson (GTSPXOESSGOQ_at_spammotel.com)
Date: 08/26/04
- Next message: Curt_C [MVP]: "Re: ASP.NET with ADirectory role based authentication"
- Previous message: Ray Costanzo [MVP]: "Re: Server.MapPath - Parent Paths Disabled - Windows 2003 IIS 6 - WorkAround"
- In reply to: Dave Blair: "Firefox reload page"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 26 Aug 2004 07:44:20 -0500
Dave Blair wrote:
> In firefox I can't get a page (which queries an SQL database and shows
> all the available records) to re-fresh with new updated data after a
> 'javascript:history.go(-4)' is used to return to the page after a new
> record is added...
Isn't that the correct behavior? Cache control is for subsequent *requests*.
You are not sending one.
"History mechanisms and caches are different. In particular history
mechanisms SHOULD NOT try to show a semantically transparent view
of the current state of a resource. Rather, a history mechanism is
meant to show exactly what the user saw at the time when the
resource was retrieved."
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.13)
> Anyone any ideas as to how to force a complete reload.
Yes. Stop (ab)using history. Force the browser to send a request. Any of
these are options:
Response.Redirect(...)
window.location.replace(...)
window.location = "..."
<a href="...">Updated View</A>
-- Dave Anderson Unsolicited commercial email will be read at a cost of $500 per message. Use of this email address implies consent to these terms. Please do not contact me directly or ask me to contact you directly for assistance. If your question is worth asking, it's worth posting.
- Next message: Curt_C [MVP]: "Re: ASP.NET with ADirectory role based authentication"
- Previous message: Ray Costanzo [MVP]: "Re: Server.MapPath - Parent Paths Disabled - Windows 2003 IIS 6 - WorkAround"
- In reply to: Dave Blair: "Firefox reload page"
- Messages sorted by: [ date ] [ thread ]