Repository logo
Communities & Collections
Research Outputs
Fundings & Projects
People
Statistics
New user? Click here to register.Have you forgotten your password?
  1. Home
  2. DSpace
  3. DSpace documentation
  4. DSPACE - prevent caching

DSPACE - prevent caching

Date Issued
2017
Type
FAQ
Handle
http:/docs.prosentient.com.au/prosentientjspui/handle/703/2902
Abstract
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.
Metrics

phone  +61 2 9212 0899  

print   +61 2 8366 2843

  • CRIS Documentation

home   SE 7.03/6a Glen St, Milsons Point NSW 2061

Copyright © 2016 Prosentient Systems. All Rights Reserved.
  • Support
  • FAQs
  • About Us
  • Privacy Policy
  • Service Level Agreements
  • Accessibility settings
  • Privacy policy
  • End User Agreement
  • Send Feedback