-
Notifications
You must be signed in to change notification settings - Fork 270
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
Cache images generated by ipx locally #1245
Comments
Same problem, different case: a 22mb file ist generated on the fly each time, taking 5secs to load … having the generated files locally cached, would be a dream. In the meantime, we added nginx in front of any Nuxt project just for caching images - |
may be some flag to force regeneration would be useful, it can check if image exists and move on |
I'd slap "out of scope" on this feature request. Caching is difficult, especially as scale increases. A basic cache layer could be added as opt-in via middleware. However, adding external layer on top of your nuxt app should be a better solution for deployment (CDN - cloudflare, vercel; cache as proxy - eg. nginx). Linking #795 as it seems related, there are comments there about caching ipx results in not only SSG but also SSR. |
An external layer is not an option. This issue is solely about adding caching for local development. |
Closing this as a duplicate of #795 |
It seems like locally ipx is regenerating all images every time the website reloaded. Is it possible to cache the generated images?
In contrast: Deployed to Vercel images are cached
The text was updated successfully, but these errors were encountered: