웹마짱구's 블로그

헤더..캐시

Linux/PHP : 2006/12/26 15:58


<?
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>



// 과거의 날짜
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

// 항상 변경됨
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);

// HTTP/1.0
header("Pragma: no-cache");

=====================================================
<ASP 일경우>
Response.AddHeader "Cache-Control", "no-cache"
Response.AddHeader "Expires", "0"
Response.AddHeader "Pragma", "no-cache"

<HTTP 일경우>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
<meta http-equiv="Pragma" content="no-cache"/>

top

TAG , ,
Linux/PHP : 2006/12/26 15:58 Trackback. : Comment. : view 989

Trackback Address :: http://jjangu.pe.kr/blog/trackback/49

Write a comment.




: 1 : ... 500 : 501 : 502 : 503 : 504 : 505 : 506 : 507 : 508 : ... 548 :