mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-24 23:41:09 +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 = 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue