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