Please jshint, can you be a regular linter?
This commit is contained in:
parent
8ed187b0f5
commit
0c9cfefcd0
@ -10,9 +10,9 @@ module.exports = function setLastModifiedHeader () {
|
|||||||
|
|
||||||
if (cache_buster) {
|
if (cache_buster) {
|
||||||
const cacheBuster = parseInt(cache_buster, 10);
|
const cacheBuster = parseInt(cache_buster, 10);
|
||||||
const lastModifiedDate = Number.isFinite(cacheBuster) && cacheBuster !== 0
|
const lastModifiedDate = Number.isFinite(cacheBuster) && cacheBuster !== 0 ?
|
||||||
? new Date(cacheBuster)
|
new Date(cacheBuster) :
|
||||||
: new Date();
|
new Date();
|
||||||
|
|
||||||
res.set('Last-Modified', lastModifiedDate.toUTCString());
|
res.set('Last-Modified', lastModifiedDate.toUTCString());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user