From 9ce958432d84151088ea2134408c73bb6daaa97d Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 22 Nov 2023 13:40:49 -0500 Subject: [PATCH] Catch cases of `! Expires:` field with no value --- src/js/assets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/assets.js b/src/js/assets.js index 1d44b7de436d2..81b54e632ba9b 100644 --- a/src/js/assets.js +++ b/src/js/assets.js @@ -52,7 +52,7 @@ const stringIsNotEmpty = s => typeof s === 'string' && s !== ''; const parseExpires = s => { const matches = s.match(/(\d+)\s*([dhm]?)/i); - if ( matches === null ) { return 0; } + if ( matches === null ) { return; } let updateAfter = parseInt(matches[1], 10); if ( matches[2] === 'h' ) { updateAfter = Math.max(updateAfter, 4) / 24;