Skip to content

Commit

Permalink
Use my own CDN cache to cache the FCC's data so response time is impr…
Browse files Browse the repository at this point in the history
…oved
  • Loading branch information
jkeen committed Nov 25, 2022
1 parent bb3415c commit 553dc38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/fcc/station/extended_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class ExtendedInfo
include HTTParty
attr_accessor :results, :service

base_uri 'https://transition.fcc.gov/fcc-bin/'
base_uri 'https://fcc-cache.b-cdn.net/fcc-bin/'

def initialize(service)
@service = service
Expand Down Expand Up @@ -69,7 +69,6 @@ def find(id_or_call_sign)
end

def find_directly(options)

response = self.class.get("/#{service.to_s.downcase}q", @options.merge(query: @query.merge(options)))
FCC.log response.request.uri.to_s.gsub('&list=4', '&list=0')
response.parsed_response
Expand Down
2 changes: 1 addition & 1 deletion lib/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module FCC
VERSION = '1.3.0'
VERSION = '1.4.0'
end

0 comments on commit 553dc38

Please sign in to comment.