Disable Pragma: no-cache header

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.
Was this article helpful?
1 out of 1 found this helpful