我有一个JSP返回此HTML 5:缓存与JSP和HTML5:如何禁用缓存服务器端
<html>
<head>
<title>Application</title>
<!-- Some script includes here -->
</head>
<body>
<!-- My html here -->
</body>
</html>
目前用户需要禁用缓存到浏览器,否则老页面每次都会重新加载。
我试图强迫没有缓存在这样一个小脚本,但没有成功:
<%
response.addHeader("Cache-Control","no-cache");
response.addHeader("Expires","-1");
response.addHeader("Pragma","no-cache");
%>
ASDE的事实,小脚本将不会是一个很好的解决方案,有没有在JSP工作任何方式禁用缓存?
有JBoss中类似的东西? – user1883212
@ user1883212我对jboss并没有太多的工作,但希望您找到https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/5/html/Administration_And_Configuration_Guide/jbosscache.chapt.html链接有用。 – AurA