From b71cc901d15b83bb85e7a40bcccf898b4f8d575a Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 13 Feb 2024 15:34:24 +0200 Subject: [PATCH] try smth on devrama --- files/routes/front.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index 3b9a83832..ab36d8d07 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -67,7 +67,9 @@ def front_all(v, hole=None): result = cache.get(f'frontpage_{sort}_{t}_{page}_{hole}_{pins}_{effortposts_only}') if result: calc_users() - return result + resp = make_response(result) + resp.headers["Cache-Control"] = "max-age=900" + return resp hide_cw = (SITE_NAME == 'WPD' and v and v.hide_cw)