Home > Database > Mysql Tutorial > body text

按IE后退按钮时让JSP不读缓存_MySQL

WBOY
Release: 2016-06-01 14:10:58
Original
808 people have browsed it

  
在ASP里我曾告诉过朋友如何让ASP程序不从缓存里读取数据,同样在JSP里也能实现,请看下面:



1, 使用java提供的方法,在jsp或者servlet中都可以 
response.setHeader("Pragma","No-cache"); 
response.setHeader("Cache-Control","no-cache"); 
response.setDateHeader("Expires", 0); 
%> 
2, 使用HTML标记,如下面: 

 
 
 
 

 
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!