diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2025-03-06 08:50:30 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-03-08 09:08:03 +0100 |
| commit | 523d2a76837cc8e94f29afc490c312e6af8398a7 (patch) | |
| tree | 3b96a6145acff7c206f470442a83144c438ec861 /dockerfiles/uwsgi.ini | |
| parent | 4884747508cf310406e458bcff8d72c44fb25005 (diff) | |
[fix] uwsgi: don't set static-expires
As long we don't have a working solution for cache busting [3][4] we should not
set an expire time in thw uWSGI config.
The default procedure in every web browser is the "304 Not Modified" [2] and
this default procedure should also be sufficient for us as long as we have not
implemented a complete alternative (cache busting) / form [1]
> By default uWSGI will add a Last-Modified [2] header to all static responses,
> and will honor the If-Modified-Since [2] request header.
[1] https://uwsgi-docs.readthedocs.io/en/latest/StaticFiles.html#setting-the-expires-headers
[2] https://developer.mozilla.org/de/docs/Web/HTTP/Status/304
[3] https://github.com/searxng/searxng/pull/4433
[4] https://github.com/searxng/searxng/issues/964
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'dockerfiles/uwsgi.ini')
| -rw-r--r-- | dockerfiles/uwsgi.ini | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/dockerfiles/uwsgi.ini b/dockerfiles/uwsgi.ini index 812716853..abe552274 100644 --- a/dockerfiles/uwsgi.ini +++ b/dockerfiles/uwsgi.ini @@ -49,6 +49,5 @@ die-on-term # uwsgi serves the static files static-map = /static=/usr/local/searxng/searx/static # expires set to one day -static-expires = /* 86400 static-gzip-all = True offload-threads = %k |