프로그래밍/asp
web cache control
GOHA
2012. 5. 24. 09:21
728x90
HTML
< meta http-equiv="Expires" content="-1"/>
< meta http-equiv="Pragma" content="no-cache"/>
< meta http-equiv="Cache-Control" content="no-cache"/>
ASP
< %
Response.Expires = -1
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "cache-control","no-cache"
%>
PHP
< ?
header("Pragma: no-cache");
header("Cache-Control: no-store, no-cache, must-revalidate");
?>
JSP
< %
response.setDateHeader("Expires", -1);
response.setHeader("Pragma","no-cache");
response.setHeader("Cache-Control","no-store"); file://HTTP 1.0
response.setHeader("Cache-Control","no-cashe"); file://HTTP 1.1
%>
728x90