Lower allowed minimum Expires directive to "12 hours" (from "1 day")

This commit is contained in:
Raymond Hill 2022-03-24 13:23:24 -04:00
parent 0bfa41ceb9
commit 18bc4dd8b8
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -936,7 +936,7 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
if ( matches[2] !== undefined ) { if ( matches[2] !== undefined ) {
updateAfter = Math.ceil(updateAfter / 24); updateAfter = Math.ceil(updateAfter / 24);
} }
updateAfter = Math.max(updateAfter, 1); updateAfter = Math.max(updateAfter, 0.5);
if ( updateAfter !== listEntry.updateAfter ) { if ( updateAfter !== listEntry.updateAfter ) {
listEntry.updateAfter = updateAfter; listEntry.updateAfter = updateAfter;
io.registerAssetSource(assetKey, { updateAfter }); io.registerAssetSource(assetKey, { updateAfter });