Bug 811126

Summary: Enable PortalRequestHandler to set Cache-control according to some configuration option
Product: [JBoss] JBoss Enterprise Portal Platform 6 Reporter: Adam Kovari <akovari>
Component: PortalAssignee: Nobody <nobody>
Status: VERIFIED --- QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: bdawidow, epp-bugs, jpallich, nobody, ppalaga, theute, tkyjovsk
Target Milestone: DR01   
Target Release: 6.2.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Previously, cache control could not be fine tuned. This prevented highly concurrent portals benefiting from caching. The enhancement adds an option for an administrator to set a custom cache-control string on the portal's configuration. This allows an administrator to fine tune the cache-control HTTP header, based on the portal's requirements. Portals without this requirement continue to have the same behavior as before.
Story Points: ---
Clone Of:
: 1072146 (view as bug list) Environment:
Last Closed: Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1072146    

Description Adam Kovari 2012-04-10 08:35:38 UTC
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

Comment 3 Juraci Paixão Kröhling 2014-01-10 14:34:00 UTC
Pull request: https://github.com/gatein/gatein-portal/pull/759

Comment 4 Peter Palaga 2014-01-15 19:39:12 UTC
Fixed in GateIn master (3.7.x)

Comment 5 Tomas Kyjovsky 2014-05-26 12:56:28 UTC
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.