force no-cache

This commit is contained in:
Konstantin Haase 2012-10-24 00:24:26 +02:00
parent 778acbf275
commit a3db22fa69

View File

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