2
서버 쪽 포함을 사용하여 다른 ASP 파일을 호출하는 고전적인 ASP 페이지가 있습니다.서버 쪽 포함 파일의 캐싱 방지
기본 파일이나 포함 된 파일을 브라우저에서 캐시하지 않길 바랍니다. 난 단지 메인 페이지가 아닌 포함 된 파일에 Response.CacheControl, Response.AddHeader, Response.Expires 코드를 삽입 한
<%@ Language="VBSCRIPT" %><% Option Explicit %>
<%
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires=-1
%>
<!--#include file="scripts1.asp"-->
<!--#include file="scripts2.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>myTitle</title>
<!--#include file="head.asp"-->
</head>
<body>
<!--#include file="body.asp"-->
</body>
</html>
: 순간
내 주는 다음과 같이 보인다.
내 질문은 :
모든 서버 측 작업을 수행 ASP 페이지가
Response.CacheControl
,Response.AddHeader
내가 사용하고Response.Expires
코드, 아니면 그냥 주요 파일이 필요 포함?모든 브라우저에서 캐싱을 방지하는 데 충분한 코드가 있습니까?