From 28864740a0474ce24b41393be7ac7444ab91b091 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 16 Dec 2023 16:16:41 +0000 Subject: [PATCH] Remove `no-cache` from thumbnail cache control --- app/blueprints/thumbnails/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/blueprints/thumbnails/__init__.py b/app/blueprints/thumbnails/__init__.py index 6cfc3cbe..43e7e710 100644 --- a/app/blueprints/thumbnails/__init__.py +++ b/app/blueprints/thumbnails/__init__.py @@ -103,5 +103,5 @@ def make_thumbnail(img, level): resize_and_crop(source_filepath, cache_filepath, (w, h)) res = send_file(cache_filepath) - res.cache_control.max_age = 7*24*60*60 + res.headers["Cache-Control"] = "max-age=604800" # 1 week return res