framework
framework copied to clipboard
SWR routes do not follow time parameters (netlify)
Environment
RootDir: /Users/f/Downloads/nuxt-3-test 18:02:36 Nuxt project info: (copied to clipboard) 18:02:36
- Operating System:
Darwin - Node Version:
v16.13.0 - Nuxt Version:
3.0.0 - Nitro Version:
1.0.0 - Package Manager:
[email protected] - Builder:
vite - User Config:
modules,nitro,routeRules - Runtime Modules:
- - Build Modules:
-
Reproduction
https://github.com/cfab/nuxt-3-test.git https://cozy-palmier-4624d4.netlify.app
Describe the bug
RouteRules with { swr: true } or { swr: 21600 } are indeed cached but regardless of parameters, and all revalidated after about a minute. In the case of 21600 the cache should last about 6 hours but it is revalidated after 1 or 2 minutes. Same with smaller numbers like 10 for example. Is this a syntax pbl of mine or a bug ? Thank you !
Additional context
No response
Logs
No response