Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RouteRoules SWR not working on Netlify #2617

Open
francisneedham opened this issue Jul 16, 2024 · 4 comments
Open

RouteRoules SWR not working on Netlify #2617

francisneedham opened this issue Jul 16, 2024 · 4 comments

Comments

@francisneedham
Copy link

Environment

production

Reproduction

https://nitrocachetest.netlify.app/test_swr_time

In this app i have one route setup like this

export default defineNitroConfig({
srcDir: "server",
routeRules: {
'/test_swr_time': { swr: 10 },
'/test_swr_true': { swr: true }
}
});

Expected result is that every 10 seconds i should see the cache regenerate but is not, is cached forever

the code of the app is here
https://bitbucket.org/displaydevteam/nitro_test/src/main/

Describe the bug

with a swr 10 setting i exect the page to change every 10 second by invalidating the cache, but is not happening.

Additional context

This is related to this
nuxt/nuxt#25418 (comment)

Logs

No response

@timbkr
Copy link

timbkr commented Jul 22, 2024

bitbucket code link not working for me

@francisneedham
Copy link
Author

Hi, sorry
here is the right link
https://bitbucket.org/francis_needham/nitro_test/

@cfab
Copy link

cfab commented Sep 19, 2024

same here !

@francisneedham
Copy link
Author

any updates ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants