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 9fbd82e commit ef2da0dCopy full SHA for ef2da0d
src/templates/getHandler.js
@@ -136,6 +136,11 @@ const makeHandler =
136
multiValueHeaders['cache-control'] = ['no-cache']
137
}
138
139
+ // Sending SWR headers causes undefined behaviour with the Netlify CDN
140
+ if (multiValueHeaders['cache-control']?.[0]?.includes('stale-while-revalidate')) {
141
+ multiValueHeaders['cache-control'] = ['public, max-age=0, must-revalidate']
142
+ }
143
+
144
return {
145
...result,
146
multiValueHeaders,
0 commit comments