Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The meta tags are not sufficient. You need to add them as fullworthy response headers. The webbrowser relies on them. A <code>Filter</code> is helpful in this. Also, the <code>Cache-Control</code> header is incomplete (won't work as expected in Firefox, among others).</p> <p>Implement this in the <code>doFilter()</code> method of a <code>Filter</code> which is mapped on an <code>url-pattern</code> of for example <code>*.jsp</code> (if you want to cover all JSP pages).</p> <pre><code>HttpServletResponse res = (HttpServletResponse) response; res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1. res.setHeader("Pragma", "no-cache"); // HTTP 1.0. res.setDateHeader("Expires", 0); // Proxies. chain.doFilter(request, response); </code></pre> <p>This way the webbrowser will be forced to fire a real request on the server rather than displaying the page from the browser cache. Also, you should rather be using a <code>Filter</code> to check the presence of the logged-in user, not JSP/JSTL.</p> <h3>Related questions:</h3> <ul> <li><a href="https://stackoverflow.com/questions/49547/making-sure-a-web-page-is-not-cached-across-all-browsers">Making sure a page is not cached, across all browsers</a></li> <li><a href="https://stackoverflow.com/questions/3149727/xhtml-pages-and-httpsession-test-no-jstl">Checking if an user is logged in</a></li> <li><a href="https://stackoverflow.com/questions/1945377/authenticating-the-username-password-by-using-filters-in-java-contacting-with-d">Authenticating the user using filters</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload