Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store local cache of Sessionize assets #272

Open
ewels opened this issue Oct 4, 2024 · 0 comments
Open

Store local cache of Sessionize assets #272

ewels opened this issue Oct 4, 2024 · 0 comments

Comments

@ewels
Copy link
Member

ewels commented Oct 4, 2024

Currently we get the URL to static assets (PDFs, speaker photos, custom share images etc) from Sessionize and use these directly in the HTML - effectively hotlinking.

It works fine, however these cache URLs are ephemeral and not guaranteed to be stable. To ensure stability, especially once we stop deploying on a regular basis, we should cache the assets in the build locally.

The best way to do this seems to be with content collections content layer API which was released in Astro 5. It should be possible to use this for static assets, see for example this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant