Fix condition for public content cache (#2929)

This commit is contained in:
Samy Pessé
2025-03-05 21:22:22 +01:00
committed by GitHub
parent c9dea94717
commit 7e67ebc11d
+1 -1
View File
@@ -269,7 +269,7 @@ export async function middleware(request: NextRequest) {
// When the request is authenticated, we don't want to cache the response on the server.
// Allow storing so that revalidation still happens with server.
if (!resolved.visitorToken) {
if (resolved.visitorToken) {
return 'no-cache, no-store';
}