no blob cache

This commit is contained in:
Pete Matsyburka committed 2026-11-14 15:43:30 +02:00
1 parent dd790be5cb
commit 353a0bc39c
1 file changed
+2 -2
@@ -42,10 +42,11 @@ module Api
authorization_check!(attachment, @record, exp) authorization_check!(attachment, @record, exp)
no_store
if request.headers['Range'].present? if request.headers['Range'].present?
send_blob_byte_range_data blob, request.headers['Range'] send_blob_byte_range_data blob, request.headers['Range']
else else
http_cache_forever public: true do
response.headers['Accept-Ranges'] = 'bytes' response.headers['Accept-Ranges'] = 'bytes'
if request.head? if request.head?
@@ -58,7 +59,6 @@ module Api
response.headers['Content-Length'] = blob.byte_size.to_s response.headers['Content-Length'] = blob.byte_size.to_s
end end
end end
end
private private