Response.Expires = 0 Response.Expiresabsolute = Now() - 1 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "no-cache"
<cfheader name="expires" value="#now()#"> <cfheader name="pragma" value="no-cache"> <cfheader name="cache-control" value="no-cache, no-store, must-revalidate">
<meta http-equiv="expires" content="Mon, 06 Jan 1990 00:00:01 GMT">
<% response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 response.setHeader("Pragma","no-cache"); //HTTP 1.0 response.setDateHeader ("Expires", 0); //prevents caching at the proxy server %>
Header('Cache-Control: no-cache'); Header('Pragma: no-cache');
Sources:
- ASP – http://support.microsoft.com/kb/311006/en-us
- PHP – http://www.php.net/manual/en/function.header.php
- ColdFusion – http://www.bpurcell.org/blog/index.cfm?entry=1075&mode=entry
- JSP – http://www.jguru.com/faq/view.jsp?EID=377&page=2
Last Updated on October 26, 2015