Can't disable Vercel cache
I am deploying nuxt to Vercel and have NuxtAuth (Wrapper around NextAuth). I am having trouble preventing Vercel from caching any endpoint I have added
no-cache, private
to the cache-control header yet on the same request I'm seeing x-vercel-cache: HIT
I have also added '/api/**': { static: false, cache: false }
to my routeRules in my nuxt config. Is there some setting on Vercel that I need to change?1 Reply
I had to add
isr: false
to '/api/**': { static: false, cache: false }