I was reading google slide on progressive Web apps where they mentioned cache interface has below methods
cache.add()
cache.addAll()
cache..put()
cache.delete()
cache.keys()
cache.match()
cache.matchAll()
but in further slides in real implementation, they are using sometimes caches ( with s ) and sometimes cache
caches.open() // whereas this method was not mentioned anywhere
caches.keys()
caches.delete()
caches.match()
cache.put () // only here using cache
Also, check for the same in MDN
they are writing Cache.add, Cache.addAll, and Cache.put ( with capital c)
and using caches.open , cache.match() and other methods
I want to know does cache and caches are 2 different objects ( or interface ) or What I am lacking here?
Please provide some resources or links to know more about these.