Re: XmlHttpRequest not loading latest version of xml
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: XmlHttpRequest not loading latest version of xml

From: Matt Silberstein <RemoveThisPrefixmatts2nospam@ix.netcom.com>
Date: Wed Nov 30 2005 - 19:14:01 CET

On Sat, 26 Nov 2005 12:02:25 +0100, in comp.lang.javascript , Thomas
'PointedEars' Lahn <PointedEars@web.de> in
<2724791.DefSyVCOSA@PointedEars.de> wrote:

>Matt Kruse wrote:
>
>> kwilder wrote:
>>> This works, but it doesn't load the latest version of the xml if it
>>> was just modified without closing and reopening the browser.
>>
>> GET requests can be cached by the browser, just as they could by typing
>> the url into the browser.
>
>It is not the request that is cached but the resource retrieved, hence the
>_response_ previously sent. Which is why GET and POST request make no
>difference here.
>
>> Attach a unique string to the url with each request so the browser doesn't
>> cache it.
>
>No, that Dirty Hack will only fill the user's cache with obsolete
>data over time. <URL:http://www.mnot.net/cache_docs/>

That is a rather nicely written (and nice looking as well, easy to
read for a technical document). I have a quick question regarding some
of the debate here: have you tested (or read about tests) of this in
various browsers. I see discussion of specifications, but not of
various implementations except for Apache. That does not answer
enough.

-- 
Matt Silberstein
Do something today about the Darfur Genocide
http://www.beawitness.org
http://www.darfurgenocide.org
http://www.savedarfur.org
"Darfur: A Genocide We can Stop" 
Received on Sat Dec 3 04:33:46 2005