Skip to content

Cache templates, scripts, and content using local storage #1

Description

@radu-matei

We currently pull all templates and scripts on each page render, unless the server and browser are configured to allow caching (which, at least for development purposes, for http-server-spa it is not the case, unlike when using http-server).

Before fetching the assets required for rendering a page, we should check the local storage for this, preferably under a revision key from bertrand.yaml.

See https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.Storage.html.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions