PHP & Others

(WML/MHTML) 캐쉬 컨트롤 방법

페이지 정보

본문

캐쉬 컨트롤 방법(WML)
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.setDataHeader (“Expires&”, 0);
%>

PHP
<? php
  Header("Pragma:no-cache“);
  Header("Cache-Control:no-cache, must-revalidate“);
  caching, HTTP/1.1
?>
-------------------------------------------------------------------------------------------------------------
캐쉬 컨트롤 방법(MHTML)
ASP
  <% Response.contenttype="text/html;charset=KS_C_5601-1987"
      Response.Expires = -1
      Response.AddHeader "Pragma", "no-cache"
      Response.AddHeader "Cache-Control", "no-store" %>

JSP
  <%@ page contentType=“text/html;charset=KS_C_5601-1987”%>
  <% response.AddHeader ("Cache-Control", "no-store”);
      response.setHeader ("Pragma", "no-cache”);
      response.setDataHeader (“Expires", 0); %>

PHP
  <? Php
      Header(“Content-Type:text/html;charset=KS_C_5601-1987“);
      Header("Pragma:no-cache“);
      Header("Cache-Control:no-cache, must-revalidate“);
      caching, HTTP/1.1
  ?>

관련자료

등록된 댓글이 없습니다.
Today's proverb
누군가 나에게 상처라는 공을 던졌을 때 그것을 다 받지 말고 거절해라. 모든 행복과 고통은 그때뿐 바람처럼 스쳐 지나간다.