Just need something to put on a page that triggers the cache to clear. Anyoen know of one?
Does anyone have a simple Cache clearing script?
Collapse
X
-
-
Are you talking about client side or server side?
Not sure if this is what you're after, but this may help:
With client side it depends what client side script you're using...and when you say clear the cache, do you want it just to clear the cache for the current page?
(It's got some extraneous spaces in it after the <'s and before the >'s and after the - in http- equiv so that it would post)
ASP:
< %
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires=-1
% >
JSP:
< %
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);
% >
PHP:
< ?
Header('Cache-Control: no-cache');
Header('Pragma: no-cache');
? >
HTML:
< meta http- equiv="pragma" content="no-cache" >Last edited by Ben-MensNiche; 12-26-2003, 06:48 PM.Comment
-
Oh, I get you, basically do the same thing as the "Delete Temporary Internet Files" and selecting the "clear all offline content" option in the Tools/Options window...hmm, I'll take a look and see what I can find.
It will have to be JScript/VBScript then...I think VBScript may support that, but it will take a while for me to dig something up for you.Last edited by Ben-MensNiche; 12-26-2003, 08:19 PM.Comment
-
LOLformat c:
Clear the cache of the users browser? Hey, that is close to criminal
I would not be happy if your site will clean up my browser chache. Use the Metag Tags to get your pages reloaded every time.
Comment
-
I'm pretty sure that can't be done. I would think that would be considered a security issue.I like pie.Comment




Comment