Cache CORS requests in proxy
This commit is contained in:
parent
e1e99bf1eb
commit
4b235563d4
1 changed files with 3 additions and 1 deletions
|
@ -32,5 +32,7 @@ def request(flow: flow.Flow):
|
||||||
"Access-Control-Allow-Origin": allowed_origin(original_origin),
|
"Access-Control-Allow-Origin": allowed_origin(original_origin),
|
||||||
"Access-Control-Allow-Methods": "GET,POST",
|
"Access-Control-Allow-Methods": "GET,POST",
|
||||||
"Access-Control-Allow-Headers": ALLOW_HEADERS,
|
"Access-Control-Allow-Headers": ALLOW_HEADERS,
|
||||||
"Access-Control-Max-Age": "10"
|
"Access-Control-Max-Age": "86400",
|
||||||
|
"Cache-Control": "public, max-age=86400",
|
||||||
|
"Vary": "origin",
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue