title: How to cache APIs like Google Maps while using Service Workers
body: <p>Trying to cache Google Maps API response in Service Workers.</p>
  
  <p>Source Code: <a href="https://github.com/boopathi/sw-demo-iss/blob/gh-pages/sw.js" rel="nofollow">https://github.com/boopathi/sw-demo-iss/blob/gh-pages/sw.js</a></p>
  
  <p>Now I'm using all of the URLs that the Maps API would request to, but seems like a bad way, and I'm not able to cache everything, can I cache requests of some type and respond to requests of the same type.</p>
  
  <p>say, </p>
  
  <pre><code>GET maps.googleapi.com/js?param1=value1
  #and
  GET maps.googleapi.com/js?param2=value2&amp;param3=value3
  </code></pre>
  
  <p>Is it possible to cache this as <code>'maps.googleapi.com/js'</code> and while fetching inject last used params ?</p>