#154440 - 2006-01-10 12:58 AM
Re: ftp exist udf?
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
I think (personally) that you are running into IE cache issues, here is a snippet of knowledge base:
Microsoft Internet Explorer Cache issues
Internet Explorer implements caching for GET requests. Authors who are not familiar with HTTP caching expect GET requests not to be cached, or for the cache to be avoided as with the refresh button. In some situations, failing to circumvent caching is a bug. One solution to this is using POST request method, which is never cached, but is intended for non-idempotent operations. A solution using the GET request method is to include a unique querystring with each call, as shown in the example below.
req.open("GET", "xmlprovider.php?hash=" + Math.random());
or set the Expires header to an old date in your script that generates the XML content. For PHP that would be
header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" ); // disable IE caching header( "Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" ); header( "Cache-Control: no-cache, must-revalidate" ); header( "Pragma: no-cache" );
Alternatively, force the XMLHTTPRequest object to retrieve the content anyway by including this in the request:
req.open("GET", "xmlprovider.php"); req.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT"); req.send(null);
The source link for above is here. Thinking maybe you could try this "GET request" work-around I highlighted in the first paragraph. Studying this more closely myself.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 414 anonymous users online.
|
|
|