mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-14 18:54:27 +00:00
Add Cache-Control back
This commit is contained in:
parent
a8d571f2a3
commit
2dcc7319ea
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ def build_resp(resp):
|
|||
if "gzip" in accept_encoding.lower():
|
||||
return (
|
||||
gzip.compress(resp.encode(), compresslevel=6),
|
||||
{"Vary": "Accept-Encoding", "Content-Encoding": "gzip"},
|
||||
{**headers, "Vary": "Accept-Encoding", "Content-Encoding": "gzip"},
|
||||
)
|
||||
|
||||
return resp, headers
|
||||
|
|
Loading…
Reference in a new issue