mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-21 14:07:59 +00:00
disable caching for now
This commit is contained in:
parent
b73fdece95
commit
33102f9e4e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue