mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 02:23:22 +08:00
remove redundent header setting
This commit is contained in:
@ -161,8 +161,6 @@ class StaticController < ApplicationController
|
||||
raise
|
||||
end
|
||||
rescue Errno::ENOENT
|
||||
response.headers["Expires"] = 5.seconds.from_now.httpdate
|
||||
response.headers["Cache-Control"] = 'max-age=5, public'
|
||||
expires_in 1.second, public: true, must_revalidate: false
|
||||
|
||||
render text: "can not find #{params[:path]}", status: 404
|
||||
|
Reference in New Issue
Block a user