add Pragma header for caches that do not understand Cache-Control, see #38

This commit is contained in:
Konstantin Haase 2013-01-21 21:18:16 +01:00
parent 1dd3324350
commit 593920ce81

View File

@ -5,6 +5,7 @@ module Travis::Api::App::Responders
end
def apply
headers['Pragma'] = "no-cache"
headers['Expires'] = Time.now.utc.httpdate
headers['Content-Disposition'] = %(inline; filename="#{File.basename(filename)}")
halt send_file(filename, type: :png)