[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ProgSoc] xmlhttp and a caching proxy



> -----Original Message-----
> From: owner-progsoc@xxxxxxxxxxxxxxxxxx [mailto:owner-
> progsoc@xxxxxxxxxxxxxxxxxx] On Behalf Of John Elliot
> Sent: Wednesday, 31 May 2006 12:04 PM
> To: ProgSoc
> Subject: Re: [ProgSoc] xmlhttp and a caching proxy
> 
> victor rajewski wrote:
> > The javascript I'm trying to tidy up... well... it involved an XMLHTTP
> > object, which opens a csv file to read some data. Problem is our
> > network is behind a caching proxy, and though the data has changed,
> > the proxy keeps on serving the old data. Is there a way to
> > force-reload (i.e. instruct the proxy to reload) when using
> > xmlhttp.open() ?
> 
> Sending a POST request and reading its response entity will guarantee a
> cache didn't get in the way.
> 
> Alternatively you can request a different URL which maps to the same
> underlying entity. E.g.,
> 
>   GET /data.csv?1
>   GET /data.csv?2
> 

Can you force an additional header entry such as

Cache-control: no-cache

using XMLHTTP?


This might also be useful...

http://en.wikipedia.org/wiki/XMLHttpRequest#Microsoft_Internet_Explorer_Cach
e_issues

Cheers,

Nigel


-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@xxxxxxxxxxxxxxxxxxx
If you are having trouble, ask owner-progsoc@xxxxxxxxxxxxxxxxxx for help.