mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-06 01:41:08 +00:00
Fix unexpected "cache-control: no-cache" header in public file server (#35209)
This commit is contained in:
parent
ac4b735c67
commit
87db28cebc
|
@ -22,7 +22,7 @@ module Mastodon
|
||||||
status, headers, response = file
|
status, headers, response = file
|
||||||
|
|
||||||
# Set cache headers on static files. Some paths require different cache headers
|
# 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']
|
request_path = env['REQUEST_PATH']
|
||||||
|
|
||||||
if request_path.start_with?('/sw.js')
|
if request_path.start_with?('/sw.js')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user