Red Hat Bugzilla – Bug 811126
Enable PortalRequestHandler to set Cache-control according to some configuration option
Last modified: 2018-02-06 14:19:26 EST
Description of problem: org.exoplatform.portal.application.PortalRequestHandler calls res.setHeader("Cache-Control", "no-cache"); need to change "no-cache" to "no-store", "must-revalidate", "max-age=0", ... Version-Release number of selected component (if applicable): EPP 5 How reproducible: always Actual results: the Cache-control setting is harcoded in java code Expected results: pick Cache-control from configuration option Additional info: please request if needed
Pull request: https://github.com/gatein/gatein-portal/pull/759
Fixed in GateIn master (3.7.x)
I tested setting a custom value for cacheControl portal property via UI. After page reload the server returns the specified value in the "Cache-Control" header. When the portal/site is exported there is an entry for cacheControl in the properties block of portal.xml file. <entry key="cacheControl">VALUE</entry> Note: Any string value is accepted in the cache-control input field. There is no validation.