NuxtN
Nuxt14mo ago
6 replies
Octofuji

Trying to get Nuxt Image ipx caching to work

It's taking a long time to optimise images on the server (default configuration rather than SSG). And the second time I access the image it's no quicker, which makes me think it's not using the cache but rather regenerating the image each time.

The image source is _ipx/... so I know the optimizer is working, but how can I test whether the cache is being used?

(I've added in the maxAge as suggested in this post, but it doesn't seem to have made a difference)

image: {
    // @ts-expect-error
    domains: [process.env.DRUPAL_URL],
    format: ['webp', 'png'],
    provider: 'ipx',
    ipx: {
      modifiers: {
        quality: 90
      },
      maxAge: 86400 //24h
    }
  },
image.png
GitHub
I'm a bit confused about how NuxtImage with ipx works, and I'm struggling to find answers in the documentation (https://image.nuxt.com/providers/ipx). How can we get an optimised image with...
Does NuxtImage with ipx cache the generated images on the server wh...
Was this page helpful?