I've a Jsp that returns this html 5:
<html>
<head>
<title>Application</title>
<!-- Some script includes here -->
</head>
<body>
<!-- My html here -->
</body>
</html>
At the moment the user need to disable caching into the browser, else the old page is reloaded every time.
I tried to force no-caching with a scriptlet in that way, but without success:
<%
response.addHeader("Cache-Control","no-cache");
response.addHeader("Expires","-1");
response.addHeader("Pragma","no-cache");
%>
Asde the fact the scriptlet wouldn't be a good solution, is there any way that works in JSP to disable caching?