top | item 19236846

(no title)

physcab | 7 years ago

Can you point to some example code that uses fetch more optimally than Cache API?

discuss

order

kentonv|7 years ago

There isn't really any magic here. If your resources or API are naturally cacheable using generic HTTP caching logic, then it's best to use fetch() and rely on that rather than try to re-implement the same logic with cache API. But if the default logic isn't a good fit, cache API makes sense.