Issue
- Liferay adding a "Pragma: no-cache" to the response header, and this is preventing the app server, or the client from caching the data.
Environment
- Liferay DXP 7.2
Resolution
- Set the
browser.cache.disabled
property to false in your portal-ext.properties file
Additional Information
- The default behavior for
browser.cache.disabled
is changed with LPS-74452, because it can cause problems for aggressive caching proxies that prefer to cache content whenever the cache-control headers are missing. - Please keep in mind that
browser.cache.signed.in.disabled
is also set to true by default, so signed-in users will still get the cache-disabling header. - Find some more details regarding the two properties in the Browser Cache section.
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In