Cache-Control header in static resources is missing when running Liferay from Developer Studio
written-by
Gábor Komáromi
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
legacy-article
learn-legacy-article-disclaimer-text
Issue
- Cache-Control header is not present in static resources when running the portal from Developer Studio and setting
com.liferay.portal.servlet.filters.header.HeaderFilter=true property in portal-ext.properties does not help.
Environment
- Liferay DXP 7.1
- Liferay Developer Studio
Resolution
- The issue is present when developer mode is turned on in Liferay Developer Studio. Turning it off and commenting out
include-and-override=portal-developer.properties in portal-ext.properties solves the problem.
-
To turn developer mode off: Select the Liferay 7.x server in the Servers window. In its Overview, under the Liferay Launch untick 'Use developer mode'.
did-this-article-resolve-your-issue