Add regression test for public blob Cache-Control

This commit is contained in:
Mike Dalessio
2026-03-26 15:22:21 -04:00
parent 628571fc79
commit 14e6832507
@@ -158,6 +158,14 @@ class ActiveStorageAuthorizationTest < ActionDispatch::IntegrationTest
assert_not_includes response.headers["Cache-Control"], "public"
end
test "proxy for publicly accessible blob sets public Cache-Control" do
blob = attach_avatar_to(users(:david))
get rails_storage_proxy_path(blob)
assert_response :success
assert_includes response.headers["Cache-Control"], "public"
end
# Account exports
test "export owner can download their export" do