From f4d1308b938ba04db271f55e6e7f774940b4b870 Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 7 Aug 2025 18:55:25 +0100 Subject: [PATCH] Add Cache-Control to messages --- twitfix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitfix.py b/twitfix.py index c1ffd4f..020c3e9 100644 --- a/twitfix.py +++ b/twitfix.py @@ -74,7 +74,7 @@ def message(text): appname = config['config']['appname'], repo = config['config']['repo'], url = config['config']['url'] ) - return Response(rendered, mimetype='text/html',headers={"Cache-Tag": "message"}) + return Response(rendered, mimetype='text/html',headers={"Cache-Tag": "message", "Cache-Control": "max-age=1760, public"}) def generateActivityLink(tweetData,media=None,mediatype=None,embedIndex=-1): global user_agent