1
0
Fork 0

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.
This commit is contained in:
Pim van den Berg 2022-11-26 19:29:41 +01:00
parent 9da99c6e00
commit 92f5f19f03
1 changed files with 2 additions and 0 deletions

View File

@ -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