Skip to content

Improve service worker configuration #484

@jgaehring

Description

@jgaehring

I installed vite-plugin-pwa in place of the workbox-webpack-plugin we were using previously. It's quite a bit nicer, much more transparent to the Workbox API, though the documentation is lacking in some places. The most useful documentation is actually in its type definitions.

I haven't dwelt too much on this, but now that we have better tooling for our service worker's configuration, it's probably worth evaluating what strategy we're using (currently "StaleWhileRevalidate") and what all we're choosing to cache. There's also some nice tooling for including an update prompt, which could be a nice alternative to maintaining my DIY onupdatefound function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions