How does caching work with nuxt/image? #1198
Unanswered
raphaelbernhart
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi :)
while developing an application with nuxt3 and nuxt/image (IPX / local) I came upon a Page Speed Insights problem (image).
As far as I know there is no cache busting functionality implemented so far. The default TTL is 60s which is not long enough for me. To at least improve the load speed when navigating on the site a few minutes after the initial request, I increased the TTL to 1h.
How are you guys handling caching with nuxt/image? Just simply changing the resource file names? IMO this is a lot of recurring work when having a lot of local images. I am aware that I could use a third party service like cloudinary but I like the flexibility which comes with locally hosting the images.
I think something like vite is doing (but in the assets folder not the public folder) would be nice, in a perfect world, tho there probably is something which is hindering such functionality.
Beta Was this translation helpful? Give feedback.
All reactions