-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
Discussion/QuestionDiscussions or questions about the codeDiscussions or questions about the codeFeedback NeededFurther information is requestedFurther information is requested
Description
I noticed that none of the assets or mirrors are cached on statiq.dev, so big things like mermaid.js are being downloaded on every single request, which can take a while on slower connections (crappy cellular/satellite). These are all the uncached requests when hitting the home page a second time:
It looks like the cache-control header for the whole site is public, max-age=0, must-revalidate - I'd suggest caching everything for at least a couple hours by default, and stuff under /mirror for a fairly long time (months?), since those libraries are inherently versioned.
Metadata
Metadata
Assignees
Labels
Discussion/QuestionDiscussions or questions about the codeDiscussions or questions about the codeFeedback NeededFurther information is requestedFurther information is requested
