remove redundent header setting
This commit is contained in:
parent
c106ca6778
commit
652b2d7199
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue