Disable SWR caching for redirects
Hello I am useing Nuxt 3 for my projects and enabled swr-caching via route rules in my nuxt config leveraging a wildcard.
This works great but I also have a rout middleware that handles redirects using NavigateTo. The redirects are fetched dynamically so are not known.
I found that all my redirects are being cached with swr. How can I disable the cache in my middleware when I redirect?
This works great but I also have a rout middleware that handles redirects using NavigateTo. The redirects are fetched dynamically so are not known.
I found that all my redirects are being cached with swr. How can I disable the cache in my middleware when I redirect?