Add representation proxy Cache-Control test

This commit is contained in:
Mike Dalessio
2026-03-26 15:34:54 -04:00
parent 14e6832507
commit e12f3e3917
@@ -166,6 +166,14 @@ class ActiveStorageAuthorizationTest < ActionDispatch::IntegrationTest
assert_includes response.headers["Cache-Control"], "public" assert_includes response.headers["Cache-Control"], "public"
end end
test "representation proxy for non-public blob does not set public Cache-Control" do
sign_in_as :david
get rails_storage_proxy_path(@blob.representation(resize_to_limit: [ 100, 100 ]))
assert_response :success
assert_not_includes response.headers["Cache-Control"], "public"
end
# Account exports # Account exports
test "export owner can download their export" do test "export owner can download their export" do