Skip to content

Commit 414556a

Browse files
authored
Remove cache client-side (#2337)
1 parent c768e9a commit 414556a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ export async function middleware(request: NextRequest) {
261261
);
262262
} else {
263263
if (resolved.cacheMaxAge) {
264-
const cacheControl = `public, max-age=60, s-maxage=${resolved.cacheMaxAge}, stale-while-revalidate=60, stale-if-error=0`;
264+
const cacheControl = `public, max-age=0, s-maxage=${resolved.cacheMaxAge}, stale-if-error=0`;
265265

266266
if (
267267
process.env.GITBOOK_OUTPUT_CACHE === 'true' &&

0 commit comments

Comments
 (0)