Thanks Scott. This works well on getting data from WiTango.
I'm also using an AJAX approach (within an html file) to read an XML
file in notepad. In the html file, I have the header setup as follows:
<head>
<meta http-equiv="Content-Type" content="text/xml; charset=utf-8" />
<meta name="Pragma" value="no-cache">
<meta name="Cache-control" value="no-cache, max-age=0,
must-revalidate, proxy-revalidate">
<meta name="Expires" value="-1">
</head>
But the XML data is still cached. Any idea where did I do wrong?
Thanks!
MC
At 09:40 AM 12/6/2007, you wrote:
Hi MC, See the following message from the Archive. The code is for
newer versions of tango, so if you have to work with the older
version, replace <@HTTPSTATUSCODE> <@HTTPREASONPHRASE> with the text
200 OK.
http://www.mail-archive.com/[email protected]/msg10780.html
You could also try adding a random argument value to uniquify the
URL. Caches are largely based on the entire URL of the content
(regardless of it's HTML or XML, etc...), so if even a single
character in the URL has changed the cache is ignored. Example:
/some.taf?random=<@RANDOM> Or you could use the javascript
Math.random() function. Hope this helps. Scott, On Thursday,
December 6, 2007 4:37am, MC Tay <[EMAIL PROTECTED]> said: > Hi: > >
Does anyone know how to prevent XML data from caching? Every time
I > change an XML file, I keep getting old data even the browser is
refreshed. > > Thanks! > > MC > >
________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf > >
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf