-
Notifications
You must be signed in to change notification settings - Fork 388
Option for caching fewer resources when Save-Data: on
header is set
#145
Comments
I like it! And then we can continue serving the content cache-first once it actually gets requested from the network because it's used for the first time on a page. (FWIW, this change to skip cache-busting when the developer indicates that they're properly versioning their resources will help cut down on the precache data transfer, too.) |
Want me to take a stab? I need to get more familiar with the lib codebase. On Tue, Jul 19, 2016, 7:07 AM Jeffrey Posnick [email protected]
|
If you want to dip your toes in, sure! I'd imagine it would involve creating a new option and treating it in a similar fashion to And then in the template, you'd need an insertion point for the new Let me ask around a bit if there are ways to detect the same information supplied by |
See WICG/netinfo#42, which tracks exposing the information that we'd need to make that determination inside the |
For content heavy sites (images, videos, etc.), precaching can introduce increased bandwidth consumption for slower connections.
sw-precache should have an option where the sw respects the
Save-Data: on
header if it is set by the client and precaches fewer resources. How this opt-in actually works is open for discussion. Perhaps users could mark critical resources. Other resources listed in the precache list are deemed optional.https://developers.google.com/web/updates/2016/02/save-data
The text was updated successfully, but these errors were encountered: