NuxtN
Nuxt15mo ago
Tackleberry

Caching images generated by NuxtImage

I am experiencing a high server load since I started using NuxtImage, because images get generated from scratch all the time. Is there no way of caching images generated by nuxt image for a longer duration? It seems they are cached for 60 seconds only.

I tried using something like
    nitro: {
        routeRules: {
            '/_ipx/**': { swr: 600 },
        }
    },


but this breaks images completely.
Was this page helpful?