mirror of
https://github.com/suitenumerique/docs
synced 2026-04-21 13:37:20 +00:00
fixup! ⚡️(backend) implement etag and last_modified cache headers to fetch content
Some checks are pending
Helmfile lint / helmfile-lint (push) Waiting to run
Some checks are pending
Helmfile lint / helmfile-lint (push) Waiting to run
This commit is contained in:
parent
8e7939438c
commit
969b677f70
1 changed files with 2 additions and 1 deletions
|
|
@ -1975,7 +1975,8 @@ class DocumentViewSet(
|
|||
# quotes. Proxies (e.g. nginx with gzip) convert strong ETags to weak ones,
|
||||
# so a strict equality check would fail on production even when unchanged.
|
||||
logger.debug("etag value : ", etag)
|
||||
logger.debug("if_none_match value : " if_none_match)
|
||||
logger.debug("if_none_match value : ", if_none_match)
|
||||
|
||||
def _etag_value(tag):
|
||||
if tag:
|
||||
tag = tag.removeprefix("W/")
|
||||
|
|
|
|||
Loading…
Reference in a new issue