Fix unexpected "cache-control: no-cache" header in public file server (#35209)
This commit is contained in:
parent
ac4b735c67
commit
87db28cebc
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue