Turning on caching in Nuxt is one line: routeRules: { '/products/**': { swr: 60 } } TTFB drops from seconds to milliseconds. But a cached response is built for one request and then handed to everyone whose request maps to the same cache key. On a personalized site, that's how one visitor's data ends up in another visitor's browser. I hit these... Weiterlesen: Nuxt SWR caching can leak one visitor's data to another — 3 traps I r…
Intelligence View
⚡ tsecurity.de Intelligence
Nuxt SWR caching can leak one visitor's data to another — 3 traps I reproduced (and the fixes)
Turning on caching in Nuxt is one line: routeRules: { '/products/**': { swr: 60 } } TTFB drops from seconds to milliseconds. But a cached response is built for…