Remove no-cache from thumbnail cache control

This commit is contained in:
rubenwardy 2023-12-16 16:16:41 +00:00
parent 9e6699c549
commit 28864740a0

@ -103,5 +103,5 @@ def make_thumbnail(img, level):
resize_and_crop(source_filepath, cache_filepath, (w, h)) resize_and_crop(source_filepath, cache_filepath, (w, h))
res = send_file(cache_filepath) 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 return res