force no-cache
This commit is contained in:
parent
778acbf275
commit
a3db22fa69
|
@ -17,6 +17,9 @@ module Travis::Api::App::Responders
|
|||
if final?
|
||||
mode = endpoint.public? ? :public : :private
|
||||
endpoint.expires(31536000, mode, :must_revalidate) # 1 year
|
||||
else
|
||||
# FIXME: Chrome WTF?
|
||||
cache_control :no_cache
|
||||
end
|
||||
|
||||
endpoint.etag resource.cache_key if cache_key?
|
||||
|
|
Loading…
Reference in New Issue
Block a user