-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[@astrojs/image] adding caching support for SSG builds #4909
Conversation
🦋 Changeset detectedLatest commit: 55e90b7 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
!preview imgcache |
|
Just wanted to check that you saw #4765 ? I don't think we need to leap to a final, built-in abstraction just yet, but it'd be great if this work for |
Agreed! I'm hoping this can turn into a general caching solution for Astro. I didn't go down the path of a full API for core here, but there really isn't anything image-specific in this implementation 👍 |
Changes
Adds caching support for transformed images 🎉
Testing
Tests added to verify images are cached during SSG builds
Docs
integration README updated with details on how to configure or disable caching
/cc @withastro/maintainers-docs
Tested in Netlify with an astro.build PR build