i’ve seen:
How to control web page caching, across all browsers?
enter link description here
I’ve used in JSF 1.2 pages:
<meta http-equiv="Cache-control" content="no-store, no-cache, must-revalidate"/>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
It did not work in IE8 e Chrome! When I use the back button it shows the page again!
What is wrong?
Regards.
Here’s a cite from How to control web page caching, across all browsers? which you linked in your question but apparently overlooked:
This is apparently the case. You need to set those headers on the real HTTP response, not in its HTML output. In case of a JSF 1.x web application the best way is to create a servlet filter to perform the task. Here’s a kickoff example:
Map it in
web.xmlon an URL pattern of interest, e.g.*.jsfor on the servlet name of theFacesServlet.