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

Add caching logic #12

@regisphilibert

Description

@regisphilibert

It would be great if the plugin handled caching of API responses like Astro Image is doing.

Use case

I've stored some site metadata on a Sanity dataset (site title, site description, site default image etc...) so that SEO data or the footer can be populated with it.

Now when I invoke this function in the footer component to fetch the site description, it dramatically slows down build time. I'm using use: Cdn which must speeds up the response, but it seems each pages still needs to wait for it in order to be built. (~ 200ms)

This also drastically increases API/CDN stats.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions