mirror of
https://github.com/docusealco/docuseal
synced 2026-11-16 08:12:32 -05:00
no blob cache
This commit is contained in:
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
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user