Fix cache_control

This commit is contained in:
Piotr Sarnacki 2012-10-24 10:49:41 +02:00
parent 30d7b90592
commit eac77c8a3b

View File

@ -19,7 +19,7 @@ module Travis::Api::App::Responders
endpoint.expires(31536000, mode, :must_revalidate) # 1 year
else
# FIXME: Chrome WTF?
cache_control :no_cache
endpoint.cache_control :no_cache
end
endpoint.etag resource.cache_key if cache_key?