(WML/MHTML) 캐쉬 컨트롤 방법
컨텐츠 정보
- 19,909 조회
- 65 추천
- 목록
본문
캐쉬 컨트롤 방법(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
?>
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
등록된 댓글이 없습니다.