We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02a9419 commit 9b68cd0Copy full SHA for 9b68cd0
api/src/multiaccessy/accessy.py
@@ -299,8 +299,9 @@ def get_image_blob(self, image_id: str) -> Response:
299
res.cache_control.max_age = 86400 # Cache for 1 day
300
res.cache_control.public = True # Allow public caching
301
res.cache_control.immutable = True # Response will not change
302
- res.cache_control.no_cache = False
303
- res.cache_control.no_store = False
+ res.cache_control.no_cache = None # Do not force revalidation
+ res.cache_control.no_store = False # Allow caching
304
+ res.cache_control.must_revalidate = False # Allow using cache if connection fails
305
return res
306
307
def get_member_id_from_accessy_id(self, accessy_id: UUID) -> Optional[int]:
0 commit comments