What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [help] to clear the http web requests

[help] to clear the http web requests
Author: Message:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: [help] to clear the http web requests
Simplest way is to use no-caching headers.

There are also some tricks, like using a random get parameter in the url to trick the cache into thinking it's a new url.

quote:
Originally posted by Wikipedia
Alternatively, it is possible to force the XMLHttpRequest object to retrieve the content anyway, as shown in this example.

req.open( "GET", "xmlprovider.php" );
req.setRequestHeader( "If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT" ); //This line doesn't work.
req.send( null );

Another method is to add a random string on the end of the url in the query:

req.open( "GET", "xmlprovider.php?sid=" + Math.random());

Wikipedia article about XMLHTTP
[Image: 1-0.png]
             
06-03-2007 10:18 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[help] to clear the http web requests - by roflmao456 on 06-03-2007 at 10:09 PM
RE: [help] to clear the http web requests - by Veggie on 06-03-2007 at 10:15 PM
RE: [help] to clear the http web requests - by Eljay on 06-03-2007 at 10:16 PM
RE: [help] to clear the http web requests - by Ezra on 06-03-2007 at 10:18 PM
RE: [help] to clear the http web requests - by roflmao456 on 06-03-2007 at 10:28 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On