From f048e0e0564025e7d21c15c69abb5674b911fd99 Mon Sep 17 00:00:00 2001 From: Piotr Milcarz Date: Fri, 29 May 2020 15:36:06 +0200 Subject: [PATCH] test no_cache for all endpoints --- lib/travis/api/app/responders/service.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/travis/api/app/responders/service.rb b/lib/travis/api/app/responders/service.rb index 436382b8a3..bc37a05dd1 100644 --- a/lib/travis/api/app/responders/service.rb +++ b/lib/travis/api/app/responders/service.rb @@ -21,14 +21,7 @@ def apply private def cache_control - if final? - mode = endpoint.public? ? :public : :private - endpoint.expires(31536000, mode) # 1 year - else - # FIXME: Chrome WTF? - endpoint.cache_control :no_cache - end - + endpoint.cache_control :no_cache endpoint.etag cache_key if cache_key end