From 92f5f19f036e6418968f1756f7ed5f3b918eec4b Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 26 Nov 2022 19:29:41 +0100 Subject: [PATCH] fix: set Cache-Control header to no-cache io. must-revalidate for datalayer "Cache-Control: must-revalidate" without max-age is confusing. Firefox keeps caching the page, while Chrome doesn't. --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index da6b012..1a689e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,8 @@ RUN set -eux && \ apt-get autoremove --purge -y && \ rm -rf /var/lib/apt/lists/* +RUN sed -i 's/must_revalidate/no_cache/' /srv/umap/venv/lib/python3.9/site-packages/umap/urls.py + ADD umap.conf /etc/umap/umap.conf ADD uwsgi.ini /srv/umap/uwsgi.ini ADD drop-privileges.sh /srv/umap/drop-privileges.sh