[mod] enable CSS & JS cache busting by default

The static files (CSS & JS) are cached in the browser for one year.  If we have
changes to the CSS or JS files, these are not yet transported to the client by
default, which causes problems and irritations on the client side.

Related:

- https://github.com/searxng/searxng/issues/4415#issuecomment-2702917901
- https://github.com/searxng/searxng/pull/932

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2025-03-06 07:42:24 +01:00
parent 8984d7ae02
commit 26c590e536

View File

@ -118,7 +118,7 @@ ui:
# Custom static path - leave it blank if you didn't change # Custom static path - leave it blank if you didn't change
static_path: "" static_path: ""
# Is overwritten by ${SEARXNG_STATIC_USE_HASH}. # Is overwritten by ${SEARXNG_STATIC_USE_HASH}.
static_use_hash: false static_use_hash: true
# Custom templates path - leave it blank if you didn't change # Custom templates path - leave it blank if you didn't change
templates_path: "" templates_path: ""
# query_in_title: When true, the result page's titles contains the query # query_in_title: When true, the result page's titles contains the query