---
title: "如何让页面不保留缓存？"
author: "diqizhan"
date: "2010-02-26T11:05:29Z"
tags: ["Cache", "HTML", "JSP"]
categories: ["Web前端"]
slug: "untitled"
draft: false
lastmod: "2010-02-26T11:05:29Z"
id: 603465
url: "https://diqizhan.iteye.com/blog/603465"
---

可在jsp页面设置：

```html

<%
   response.setHeader("Pragma","No-cache");
   response.setHeader("Cache-Control","no-cache");
   response.setDateHeader("Expires",0);
%>

```