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

This commit is contained in:
Jeong Arm authored and GitHub committed 2025-06-30 09:06:18 +00:00
1 parent ac4b735c67
commit 87db28cebc
1 file changed
+1 -1
@@ -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')