Prevention of Web Page Caching – JAVA
Method
Add the following codes into the page, in order to prevent the page being cached:
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); response.setHeader("Pragma", "no-cache"); response.setDateHeader("Expires", 0);
Reference
https://weblogs.java.net/blog/swchan2/archive/2013/08/29/when-httpsessio…
Leave a Reply
Want to join the discussion?Feel free to contribute!