Fix unexpected "cache-control: no-cache" header in public file server (#35209)

This commit is contained in:
Jeong Arm 2025-06-30 18:06:18 +09:00 committed by GitHub
parent ac4b735c67
commit 87db28cebc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,7 +22,7 @@ module Mastodon
status, headers, response = file
# Set cache headers on static files. Some paths require different cache headers
headers['Cache-Control'] = begin
headers['cache-control'] = begin
request_path = env['REQUEST_PATH']
if request_path.start_with?('/sw.js')