From ca47b3190401e6818c268ca920a3e1a2a3b9f683 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Tue, 23 Oct 2012 21:47:32 +0200 Subject: [PATCH] don't cache non-final services --- lib/travis/api/app/responders/service.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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?