Bismillah ir-Rahman ir-Rahim
QUESTION:
Hi!
When I make changes in the css files of my theme (e.g. in navigation.css) and then deploy the theme, the changes are not shown in my browser until I choose to refresh the browser. If I don't refresh the browser, cached copies of the old css files are used.
Is there any way to force the removal of cached css files whenever a change has been made in them?
ANSWERS:
Open portal-ext.properties
tomcat/webapps/root/web-inf/classes/
Add this in your portal-ext.properties file :
theme.css.fast.load=false
theme.images.fast.load=false
javascript.fast.load=true
javascript.log.enabled=true
layout.template.cache.enabled=false
browser.launcher.url=
combo.check.timestamp=true
freemarker.engine.cache.storage=soft:1
freemarker.engine.modification.check.interval=0
openoffice.cache.enabled=false
velocity.engine.resource.manager.cache.enabled=false
com.liferay.portal.servlet.filters.cache.CacheFilter=false
com.liferay.portal.servlet.filters.themepreview.ThemePreviewFilter=true
or simply add this line :
include-and-override=portal-developer.properties
Alhamdulillah.
Hidayah