We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4bf6d8 commit 4fc4f3cCopy full SHA for 4fc4f3c
packages/open-next/src/core/routing/util.ts
@@ -243,7 +243,7 @@ export function fixCacheHeaderForHtmlPages(
243
const localizedPath = localizePath(internalEvent);
244
// WORKAROUND: `NextServer` does not set cache headers for HTML pages
245
// 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
+ // Requests containing an `x-middleware-prefetch` header must not be cached
247
if (
248
HtmlPages.includes(localizedPath) &&
249
!internalEvent.headers["x-middleware-prefetch"]
0 commit comments