Understanding Storage Quota | Workbox

Jeff Posnick menulis, wrt to Workbox

A common source of unexpectedly high quota usage is due to runtime caching of opaque responses, which is to say, cross-origin responses to requests made without CORS enabled.

Browsers automatically inflate the quota impact of those opaque responses as a security consideration. In Chrome, for instance, even an opaque response of a few kilobytes will end up contributing around 7 megabytes towards your quota usage.

Baca pos lengkap.

Pekerja Layanan adalah bagian yang luar biasa dan integral dari ekosistem web, tetapi masih ada beberapa gotchas - dan ini adalah salah satu dari mereka yang dapat menggigit Anda jika Anda tidak mengetahui hal ini sebelumnya.

Sangat menyenangkan melihat alat seperti Workbox dapat menangani ini dan memberi tahu Anda sehingga Anda tahu apa yang terjadi.

About Me: Paul Kinlan

I lead the Chrome Developer Relations team at Google.

We want people to have the best experience possible on the web without having to install a native app or produce content in a walled garden.

Our team tries to make it easier for developers to build on the web by supporting every Chrome release, creating great content to support developers on web.dev, contributing to MDN, helping to improve browser compatibility, and some of the best developer tools like Lighthouse, Workbox, Squoosh to name just a few.