diff --git a/lib/travis/api/app/responders/service.rb b/lib/travis/api/app/responders/service.rb index c0ed514f..7d632367 100644 --- a/lib/travis/api/app/responders/service.rb +++ b/lib/travis/api/app/responders/service.rb @@ -14,8 +14,9 @@ module Travis::Api::App::Responders private def cache_control + return unless final? # FIXME mode = [endpoint.public? ? :public : :private] - mode << :must_revalidate unless final? + mode << :must_revalidate #unless final? endpoint.expires(31536000, *mode) # 1 year endpoint.etag resource.cache_key if cache_key? endpoint.last_modified resource.updated_at if updated_at?