File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ export const config = {
15
15
matcher : [
16
16
'/((?!_next/static|_next/image|~gitbook/static|~gitbook/revalidate|~gitbook/monitoring|~scalar/proxy).*)' ,
17
17
] ,
18
- skipTrailingSlashRedirect : true ,
19
18
} ;
20
19
21
20
type URLWithMode = { url : URL ; mode : 'url' | 'url-host' } ;
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ export async function middleware(request: NextRequest) {
270
270
// When the request is authenticated, we don't want to cache the response on the server.
271
271
// Allow storing so that revalidation still happens with server.
272
272
if ( ! resolved . visitorToken ) {
273
- return 'no-cache' ;
273
+ return 'no-cache, no-store ' ;
274
274
}
275
275
276
276
if ( typeof resolved . cacheMaxAge === 'number' ) {
You can’t perform that action at this time.
0 commit comments