Fix Caching

This commit is contained in:
Phillip Kühne 2023-03-30 18:00:08 +02:00
parent 7ef938a5ff
commit fe71fa2d8c
Signed by: phillip
GPG Key ID: E4C1C4D2F90902AA

View File

@ -266,7 +266,7 @@ def add_header(response):
and also to cache the rendered page for 10 minutes. and also to cache the rendered page for 10 minutes.
""" """
if not 'Cache-Control' in response.headers: if not 'Cache-Control' in response.headers:
response.headers['Cache-Control'] = 'private, max-age=600' response.headers['Cache-Control'] = 'private, max-age=600, no-cache, must-revalidate'
return response return response
@app.context_processor @app.context_processor