add Pragma header for caches that do not understand Cache-Control, see #38
This commit is contained in:
parent
1dd3324350
commit
593920ce81
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user