Trying to cache Google Maps API response in Service Workers.
Source Code: https://github.com/boopathi/sw-demo-iss/blob/gh-pages/sw.js
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.
say,
GET maps.googleapi.com/js?param1=value1
#and
GET maps.googleapi.com/js?param2=value2¶m3=value3
Is it possible to cache this as 'maps.googleapi.com/js'
and while fetching inject last used params ?