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=0
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "Cache-Control","no-cache,must-revalidate"
%>
JSP
<%
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setDateHeader("Expires",0);
if(request.getProtocal().equals("HTTP/1.1"))
response.setHeader("Cache-Control","no-cache");
%>
PHP
<?
header("Pragma:no-cache");
header("Cache-Control:no-chche,must-revalidate");
?>
Struts Framework
<controller nocache="true" /> <= struts-config.xml
댓글 없음:
댓글 쓰기