Please use this identifier to cite or link to this item: http:/docs.prosentient.com.au/prosentientjspui/handle/1/2902
Title: DSPACE - prevent caching
Authors: Balnaves, Edmund
Issue Date: 2017
Description: The following pages particularly can benefit from no caching
tools/edit-item-form.jsp
mydspace/home.jsp
display-item.jsp

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:/docs.prosentient.com.au/prosentientjspui/handle/1/2902
Appears in Collections:DSpace documentation

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


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