Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Modify service worker to only cache /static/cache instead of /static #983

Open
@swyxio

Description

@swyxio

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions