• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

Ensuring a page refreshes with updated values

I have a jsp that brings up a list of names but when a new name is added and i click back to that page, the old page is brought up, without the new addition. How can I ensure that the page is refreshed rather than using the one in the cache?

Thanks
franki
0
frankis
Asked:
frankis
  • 2
1 Solution
 
bloodredsunCommented:
<%
      response.setHeader("Expires", "Sun, 7 May 1995 12:00:00 GMT");
        response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");
        response.addHeader("Cache-Control", "post-check=0, pre-check=0");
        response.setHeader("Pragma", "no-cache");
%>
0
 
frankisAuthor Commented:
sorry, thought this was closed
0
 
bloodredsunCommented:
Thanks
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now