Cache CORS requests in proxy

This commit is contained in:
Midgard 2022-06-18 22:08:52 +02:00
parent e1e99bf1eb
commit 4b235563d4
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -32,5 +32,7 @@ def request(flow: flow.Flow):
"Access-Control-Allow-Origin": allowed_origin(original_origin),
"Access-Control-Allow-Methods": "GET,POST",
"Access-Control-Allow-Headers": ALLOW_HEADERS,
"Access-Control-Max-Age": "10"
"Access-Control-Max-Age": "86400",
"Cache-Control": "public, max-age=86400",
"Vary": "origin",
})