cache
Developer
System Administrator
Jahia 7.3
Jahia 8
Legacy
How to configure the browser cache
Question
The customer would like to change the cache settings which is set to 1 month by default in the last-
urlrewrite
.
xml
file of the ROOT/WEB-INF/lib/jahia-
impl
-7.1.1.0.jar
library. He has followed the procedure to change this cache as defined at https://academy.jahia.com/documentation/developer/jahia/7.3/advanced-guides/vanity-urls-and-seo/optimizing-urls-to-improve-seo-and-user-experience#browser-caching
However, the cache is still set to 1 month
Cause
The setting of this cache must be done in a separate fileSolution
The best solution is to add a file of type urlrewrite
at the module level or in a generic module which manages the cache of your resources (CSS, js, gif, etc.)