Impossible to cache anything with Nuxt + Cloudflare
Hi!
I have a Nuxt app I host on Render, using npm run generate.
I defined the homepage as pre-render
routeRules: { '/': { prerender: true }, },
routeRules: { '/': { prerender: true }, },
However, when I check the Cloudflare header
cf-cache-status:
cf-cache-status:
it's always set as
DYNAMIC
DYNAMIC
instead of
HIT
HIT
I have a Cloudflare page rule forcing everything to be cachet, yet nothing is cached
Some extra context: - I can't use
npm run generate
npm run generate
for this project - I have Nuxt Images installed and I need the image cached too to avoid using all my host's allowed bandwidth, but same issue. Even with
image: {provider: 'ipxStatic'},
image: {provider: 'ipxStatic'},
in the nuxt config
I tried a bunch of things but nothing works. Is it simply not possible?