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 8576607 commit 35eb96fCopy full SHA for 35eb96f
src/templates/getHandler.js
@@ -170,9 +170,12 @@ const makeHandler =
170
if (mode === 'odb' && process.env.EXPERIMENTAL_ODB_TTL) {
171
mode = 'isr'
172
const ttl = getMaxAge(cacheHeader)
173
+ multiValueHeaders['x-raw-ttl'] = [ttl]
174
+
175
// Long-expiry TTL is basically no TTL
176
if (ttl > 0 && ttl < ONE_YEAR_IN_SECONDS) {
177
result.ttl = Math.min(ttl, 60)
178
+ multiValueHeaders['x-ttl-result'] = [result.ttl]
179
}
180
181
multiValueHeaders['cache-control'] = ['public, max-age=0, must-revalidate']
0 commit comments