Skip to content

Commit a3c75aa

Browse files
committed
fix(cache): mark restricted files as no-cache for cache-control
1 parent 64fbad3 commit a3c75aa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

invenio_s3/helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,7 @@ def redirect_stream(
9696
if cache_timeout is not None:
9797
rv.cache_control.max_age = cache_timeout
9898
rv.expires = int(time() + cache_timeout)
99+
else:
100+
rv.cache_control.no_cache = True
99101

100102
return rv

0 commit comments

Comments
 (0)