Skip to content

Commit 4fc4f3c

Browse files
conico974vicb
andauthored
Update packages/open-next/src/core/routing/util.ts
Co-authored-by: Victor Berchet <victor@suumit.com>
1 parent a4bf6d8 commit 4fc4f3c

File tree

1 file changed

+1
-1
lines changed
  • packages/open-next/src/core/routing

1 file changed

+1
-1
lines changed

packages/open-next/src/core/routing/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export function fixCacheHeaderForHtmlPages(
243243
const localizedPath = localizePath(internalEvent);
244244
// WORKAROUND: `NextServer` does not set cache headers for HTML pages
245245
// https://opennext.js.org/aws/v2/advanced/workaround#workaround-nextserver-does-not-set-cache-headers-for-html-pages
246-
// We need to not cache if the request contains an `x-middleware-prefetch` header
246+
// Requests containing an `x-middleware-prefetch` header must not be cached
247247
if (
248248
HtmlPages.includes(localizedPath) &&
249249
!internalEvent.headers["x-middleware-prefetch"]

0 commit comments

Comments
 (0)