---
title: "How to configure the browser cache"
url: "https://academy.jahia.com/sites/academy/contents/knowledge-base/2018/how-to-configure-the-browser-cache.html"
last_updated: 2026-10-01
---

# How to configure the browser cache

cache System administrator Jahia 7.3 Jahia 8 Legacy

## 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](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 file

## Solution

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.)
