Please use this identifier to cite or link to this item:
Title: DSPACE - prevent caching
Issue Date: 2017
Description: The following pages particularly can benefit from no caching

Add the following to the imports for the jsp page

<%@page import="javax.servlet.http.HttpServletResponse" %>

Add the following to the very start of the mainline jsp code (after the declarations)

HttpServletResponse httpResponse = (HttpServletResponse) response; httpResponse.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1
httpResponse.setHeader("Pragma", "no-cache"); // HTTP 1.0
httpResponse.setDateHeader("Expires", 0); // Proxies.
URI: http:/
Appears in Collections:DSpace documentation

Files in This Item:
There are no files associated with this item.

Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.