---
title: "取消缓存"
author: "notcool"
date: "2009-08-19T11:55:37Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2009-08-19T11:55:37Z"
id: 452684
url: "https://notcool.iteye.com/blog/452684"
---

取消 缓存

方法一：可以加入到JSP或Servlet

<%
 response.setHeader("Pragma","No-cache");
 response.setHeader("Cache-Control","no-cache");
 response.setDateHeader("Expires", 0);
%> 

方法二：

<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
</HEAD>