4 ms·
Can you point to some example code that uses fetch more optimally than Cache API?
by physcab 8y ago
Can you point to some example code that uses fetch more optimally than Cache API?
- kentonv 8y agoThere 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.