-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
It looks like CrispHttpCache is only looking at the the s-maxage header to set TTLs:
main.js:234
if (cacheControlInfo['s-maxage'] && !isPrivate) {
return callback(null, parseInt(cacheControlInfo['s-maxage']) * 1000);
}
I would think that should be:
const maxAge = cacheControlInfo['s-maxage'] || cacheControlInfo['max-age'];
if (maxAge && !isPrivate) {
return callback(null, parseInt(cacheControlInfo['s-maxage']) * 1000);
}