We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35eb96f commit 13ebc04Copy full SHA for 13ebc04
src/templates/getHandler.js
@@ -123,7 +123,7 @@ const makeHandler =
123
let maxAge
124
for (const part of parts) {
125
const [key, value] = part.split('=')
126
- if (key?.trim() === 's-max-age') {
+ if (key?.trim() === 's-maxage') {
127
maxAge = value?.trim()
128
}
129
@@ -166,6 +166,8 @@ const makeHandler =
166
167
// Sending SWR headers causes undefined behaviour with the Netlify CDN
168
const cacheHeader = multiValueHeaders['cache-control']?.[0]
169
+ multiValueHeaders['x-next-cache-header'] = [cacheHeader]
170
+
171
if (cacheHeader?.includes('stale-while-revalidate')) {
172
if (mode === 'odb' && process.env.EXPERIMENTAL_ODB_TTL) {
173
mode = 'isr'
0 commit comments