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
  ?>

관련자료

댓글 0
등록된 댓글이 없습니다.
Today's proverb
당신이 가야 할 길이 당신의 눈앞에 있거든 망설이지 말라. 당신이 가야 할 길이 분명하면, 기꺼이 확고한 의지로 그 길을 가라. 혹시 당신이 가야 할 길이 보이지 않는다면 멈추어 서서 가장 훌륭한 충고자들과 상의하라. 만일 당신이 가는 길에 어떤 장애물이 나타나면, 정의가 가리키는 길을 따라 당신이 갈 수 있는 곳까지 조심히 나아가라. (아우렐리우스)