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:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. [help] to clear the http web requests
how do i clear the cache of http web requests? or always download a newer version of the page

it always displays the same content that i'm trying to download :p

This post was edited on 06-03-2007 at 10:13 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
06-03-2007 10:09 PM
Profile PM Web Find Quote Report
Veggie
Full Member
***

Avatar

Posts: 415
Reputation: 21
37 / Male / Flag
Joined: Sep 2004
RE: [help] to clear the http web requests
Interop.Call('wininet.dll', 'DeleteUrlCacheEntryW', Url);
change Url to the page you are requesting

or you can append the site with a random variable
http://wesite.com/page.php?123124414
06-03-2007 10:15 PM
Profile E-Mail PM Web Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: [help] to clear the http web requests
quote:
Originally posted by roflmao456
how do i clear the cache of http web requests?

it always displays the same content that i'm trying to download :p

You could just add a random number onto the end of the URL, so it's fooled into thinking it's loading a different page to the cached one. e.g:
code:
var URL = "http://example.com/?" + Math.random();

This post was edited on 06-03-2007 at 10:16 PM by Eljay.
06-03-2007 10:16 PM
Profile PM Find Quote Report
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
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [help] to clear the http web requests
all your ideas were great and worked (Y)

thanks :)
[quote]
Ultimatess6
: What a noob mod
06-03-2007 10:28 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


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