Details
-
Feature Request
-
Status: Reviewed
-
Minor
-
Resolution: Already in the Product
-
None
-
None
Description
Summary:
DXP explicitly marks document library items as "private" by using "Cache-Control: private" header in HTTP response, which has been introduced by -LPS-27419- in 6.1 as a design decision, and has been intended behavior since then.
This behavior causes to ignore caching mechanism of web servers and Content Delivery Network tools in front of Liferay.
Feature request:
Make HTTP Cache-Control dynamic for downloading of Document Library Items.
Proposal:
The following is provided only to illustrate expected behavior.
- Add a configuration property file.cache.control.guest.policy to regulate "cache-control" header when serving files, as follows
file.cache.control.guest.policy value | Behavior |
---|---|
private (default value) | Use "Cache-Control: private" for all served files |
public |
|
- Add a configuration property file.cache.control.guest.max-age to specify how long document have to be considered fresh by caching agents, in seconds. That should default to some reasonable value such as 60
- Tag always-public files and have a servlet filter to set appropriate headers.
Attachments
Issue Links
- is related to
-
LPS-109977 Make public documents cacheable by CDN
-
- Closed
-