next-on-pages data caching does not work
Related to: https://github.com/cloudflare/next-on-pages/issues/799
Data which is fetched via the 'fetch' function is not cached, and gets re-fetched every page load regardless of the values of 'revalidate' or 'tags'.
Building and running the next application locally with:
and
results in following error on page load:
minimal reproducible example
https://github.com/ilovemesomeramen/next-on-pages-cache-issue
any help would be appreciated!
Data which is fetched via the 'fetch' function is not cached, and gets re-fetched every page load regardless of the values of 'revalidate' or 'tags'.
Building and running the next application locally with:
npx @cloudflare/next-on-pagesand
npx wrangler pages dev .vercel/output/static --compatibility-flag=nodejs_compatresults in following error on page load:
minimal reproducible example
https://github.com/ilovemesomeramen/next-on-pages-cache-issue
any help would be appreciated!
GitHub
next-on-pages environment related information System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.5.0: Wed May 1 20:17:33 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6031 CPU...
GitHub
Contribute to ilovemesomeramen/next-on-pages-cache-issue development by creating an account on GitHub.