GoogleChromeLabs / sw-toolbox

[Deprecated] A collection of service worker tools for offlining runtime requests
https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw
Apache License 2.0
3.62k stars 332 forks source link

What is the use of indexDb if sw-toolbox is validating freshness of cache via date header #283

Open minaseem opened 6 years ago

minaseem commented 6 years ago

https://github.com/GoogleChromeLabs/sw-toolbox/blob/2fb9a52cefd47cac6902ec5bb20fd4b0aafc3bc4/lib/helpers.js#L182

I am a bit confused here. Why is sw-toolbox maintaining an indexDb if it is validating the freshness of cache via date header.

I know this is not an issue, but I don't know if there is any other medium to ask this question.