From c47a222c83876aeb488e1fe3a40ebe4c990309ad Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Thu, 27 Aug 2015 00:50:25 -0400 Subject: [PATCH] Add cache control headers --- cpi_feed.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/cpi_feed.rb b/cpi_feed.rb index 6040501..3689ca7 100644 --- a/cpi_feed.rb +++ b/cpi_feed.rb @@ -8,6 +8,7 @@ class CPIFeed < Sinatra::Base get '/' do resp = JSON.parse(Faraday.get(cpi_series_url).body) + expires 300, :public, :must_revalidate content_type :csv "cpi\n#{resp['Results']['series'].first['data'].first['value']}\n" end