Modify service worker to only cache /static/cache instead of /static #983
Description
Is your feature request related to a problem? Please describe.
yes. it is common to want to place og:images and other assets in /static
. however that isn't synonymous with wanting to cache everything eagerly in the service worker, yet this is exactly what the SW currently does. the default encourages eager downloading of the entire /static folder, which is a problem for large sites.
Describe the solution you'd like
simple, only cache things in /static/cache
by default so it is visually evident what gets cached and what doesnt.
How important is this feature to you?
minorly important in the "pit of success" way of things. this is a one-liner change.
Additional context
it seems rich agrees in principle https://twitter.com/swyx/status/1192526582998589445