mirror of
https://github.com/suitenumerique/docs.git
synced 2026-04-25 17:15:01 +02:00
fixup! ♻️(backend) use additional http extra methods for content action
This commit is contained in:
@@ -1945,7 +1945,7 @@ class DocumentViewSet(
|
|||||||
We retrieve the ETag and LastModified from the S3 head operation, save them in cache to
|
We retrieve the ETag and LastModified from the S3 head operation, save them in cache to
|
||||||
reuse them in future requests.
|
reuse them in future requests.
|
||||||
We check in the request if the ETag is present in the If-None-Match header and if it's the
|
We check in the request if the ETag is present in the If-None-Match header and if it's the
|
||||||
same than the one from the S3 head operation, we return a 304 response.
|
same as the one from the S3 head operation, we return a 304 response.
|
||||||
If the ETag is not present or not the same, we do the same check based on the LastModifed
|
If the ETag is not present or not the same, we do the same check based on the LastModifed
|
||||||
value if present in the If-Modified-Since header.
|
value if present in the If-Modified-Since header.
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user