![]() |
Does anyone have a simple Cache clearing script?
Just need something to put on a page that triggers the cache to clear. Anyoen know of one?
|
Norton System Works
|
It's not for my personal use. I need to add it to a web page for surfers.
|
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" > |
format c:
|
Client side is best but I need either a page or a little button they can press that will clear their entire cache.
|
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. |
Ben, any luck finding that script? I have been searching and searching with no luck!:helpme
|
Quote:
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. |
I'm pretty sure that can't be done. I would think that would be considered a security issue.
|
All times are GMT -7. The time now is 01:06 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123