disable caching for now

This commit is contained in:
Izalia Mae 2024-03-04 01:42:27 -05:00
parent b73fdece95
commit 33102f9e4e

View file

@ -262,11 +262,11 @@ async def handle_response_headers(request: web.Request, handler: Coroutine) -> R
resp = await handler(request) resp = await handler(request)
resp.headers['Server'] = 'ActivityRelay' resp.headers['Server'] = 'ActivityRelay'
if not request.app['dev'] and request.path.endswith(('.css', '.js')): # if not request.app['dev'] and request.path.endswith(('.css', '.js')):
resp.headers['Cache-Control'] = 'public,max-age=2628000,immutable' # resp.headers['Cache-Control'] = 'public,max-age=2628000,immutable'
#
else: # else:
resp.headers['Cache-Control'] = 'no-store' # resp.headers['Cache-Control'] = 'no-store'
return resp return resp