GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Does anyone have a simple Cache clearing script? (https://gfy.com/showthread.php?t=213382)

Pornwolf 12-26-2003 07:44 PM

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?

Oracle Porn 12-26-2003 07:44 PM

Norton System Works

Pornwolf 12-26-2003 07:53 PM

It's not for my personal use. I need to add it to a web page for surfers.

Ben-MensNiche 12-26-2003 08:33 PM

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" >

404 12-26-2003 08:41 PM

format c:

Pornwolf 12-26-2003 08:56 PM

Client side is best but I need either a page or a little button they can press that will clear their entire cache.

Ben-MensNiche 12-26-2003 10:15 PM

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.

Pornwolf 12-30-2003 12:16 AM

Ben, any luck finding that script? I have been searching and searching with no luck!:helpme

Zappu 12-30-2003 02:49 AM

Quote:

format c:
LOL :1orglaugh

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.

Babaganoosh 12-30-2003 02:52 AM

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