From 33102f9e4eada028d6e299769e7ed86fdda47975 Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Mon, 4 Mar 2024 01:42:27 -0500 Subject: [PATCH] disable caching for now --- relay/application.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/relay/application.py b/relay/application.py index ea65992..d463244 100644 --- a/relay/application.py +++ b/relay/application.py @@ -262,11 +262,11 @@ async def handle_response_headers(request: web.Request, handler: Coroutine) -> R resp = await handler(request) resp.headers['Server'] = 'ActivityRelay' - if not request.app['dev'] and request.path.endswith(('.css', '.js')): - resp.headers['Cache-Control'] = 'public,max-age=2628000,immutable' - - else: - resp.headers['Cache-Control'] = 'no-store' +# if not request.app['dev'] and request.path.endswith(('.css', '.js')): +# resp.headers['Cache-Control'] = 'public,max-age=2628000,immutable' +# +# else: +# resp.headers['Cache-Control'] = 'no-store' return resp