Win a copy of Functional Reactive Programming this week in the Other Languages forum!
    Bookmark Topic Watch Topic
 
friki data migration
Ranch Hand
Posts: 772
  • Mark post as helpful
  • send pies
  • Report post to moderator
While the browsers usually have a mind of their own, the following hints added to the response header seem to prevent most modern browsers from pulling pages out of cache when the same URL is "hit".



The same effect can be achieved by using meta tags in the HTML header:



The Cache-Control header was added in HTTP 1.1, while the other two were also present in HTTP 1.0.

Note that it's easy to avoid having to put this onto each and every page (or servlet) by creating a servlet filter that adds the appropriate headers to the response for each request to a non-static resource.




Back to:

ServletsFaq

JspFaq
 
    Bookmark Topic Watch Topic
  • New Topic