---
title: "网页后退过期的实现"
author: "java_true"
date: "2011-10-30T13:47:51Z"
tags: []
categories: ["Web前端"]
slug: "untitled"
draft: false
lastmod: "2011-10-30T13:47:51Z"
id: 1222905
url: "https://java-true.iteye.com/blog/1222905"
---

加入以下代码即可：

```java

        <META http-equiv="Expires" content="0"/>
		<META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate"/>  
		<META http-equiv="Pragma" content="no-cache"/> 
			<%
			response.setHeader("Pragma","no-cache"); 
			response.setHeader("Cache-Control","no-store, no-cache, must-revalidate"); 
			response.setDateHeader("Expires", 0);
			%>

```