|
|
|
@ -10,9 +10,9 @@ module.exports = function setLastModifiedHeader () {
|
|
|
|
|
|
|
|
|
|
if (cache_buster) {
|
|
|
|
|
const cacheBuster = parseInt(cache_buster, 10);
|
|
|
|
|
const lastModifiedDate = Number.isFinite(cacheBuster) && cacheBuster !== 0
|
|
|
|
|
? new Date(cacheBuster)
|
|
|
|
|
: new Date();
|
|
|
|
|
const lastModifiedDate = Number.isFinite(cacheBuster) && cacheBuster !== 0 ?
|
|
|
|
|
new Date(cacheBuster) :
|
|
|
|
|
new Date();
|
|
|
|
|
|
|
|
|
|
res.set('Last-Modified', lastModifiedDate.toUTCString());
|
|
|
|
|
|
|
|
|
|