Skip to content

Commit 7e67ebc

Browse files
authored
Fix condition for public content cache (#2929)
1 parent c9dea94 commit 7e67ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gitbook/src/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export async function middleware(request: NextRequest) {
269269

270270
// When the request is authenticated, we don't want to cache the response on the server.
271271
// Allow storing so that revalidation still happens with server.
272-
if (!resolved.visitorToken) {
272+
if (resolved.visitorToken) {
273273
return 'no-cache, no-store';
274274
}
275275

0 commit comments

Comments
 (0)