remove redundent header setting

This commit is contained in:
Sam 2017-03-20 16:08:18 -04:00
parent c106ca6778
commit 652b2d7199
1 changed files with 0 additions and 2 deletions

View File

@ -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