mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 10:03:31 +00:00
Fix condition for public content cache (#2929)
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user