View Single Post
Old 12-26-2003, 08:33 PM  
Ben-MensNiche
Confirmed User
 
Join Date: Dec 2003
Location: Victoria, BC, Canada
Posts: 726
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" >
__________________

ICQ: 310539245
Email: [email protected]

Last edited by Ben-MensNiche; 12-26-2003 at 08:48 PM..
Ben-MensNiche is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote