Import pagefind via shared CDN #1858
Closed
JosefJezek
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
Would need testing, but I’m fairly sure those StackOverflow answers you linked are outdated — in general cross-origin caching was deprecated for security reasons (to prevent cached assets being used to work around newer cross-site tracking limitations). So switching to a third-party CDN in this case would likely damage performance: it would be slower to establish the connection to a second server instead of reusing the open connection to the site’s origin server. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of
starlight
are you using?0.22.2
What is your idea?
Import pagefind pkg via shared CDN, ex. esm.sh
The pagefind pkg is here:
https://github.com/withastro/starlight/blob/main/packages/starlight/components/Search.astro
Why is this feature necessary?
Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions