Tips
javascript - 페이지를 열때마다 자동으로 캐시 지우기
mingmingIT
2017. 11. 30. 11:59
//JSP
response.setHeader("Pragma", "No-cache");
response.setDateHeader("Expires", 0);
response.setHeader("Cache-Control", "No-cache");
//ASP
Response.AddHeader "Cache-Control", "no-cache"
Response.AddHeader "Expires", "0"
Response.AddHeader "Pragma", "no-cache"
//PHP
header("Cache-Control:no-cache");
header("Expires:0" );
header("Pragma:no-cache");
//WML
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
<meta http-equiv="Pragma" content="no-cache"/>