From 9fb455d2df60cc3ea989ff18b1b13f128f06be48 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 23 Feb 2018 06:42:17 -0500 Subject: [PATCH] fix #3406 --- src/js/storage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/storage.js b/src/js/storage.js index c4f06d039..0d51be9aa 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -721,6 +721,9 @@ /******************************************************************************/ +// https://github.com/gorhill/uBlock/issues/3406 +// Lower minimum update period to 1 day. + µBlock.extractFilterListMetadata = function(assetKey, raw) { var listEntry = this.availableFilterLists[assetKey]; if ( listEntry === undefined ) { return; } @@ -742,7 +745,7 @@ // Extract update frequency information matches = head.match(/(?:^|\n)![\t ]*Expires:[\t ]*([\d]+)[\t ]*days?/i); if ( matches !== null ) { - v = Math.max(parseInt(matches[1], 10), 2); + v = Math.max(parseInt(matches[1], 10), 1); if ( v !== listEntry.updateAfter ) { this.assets.registerAssetSource(assetKey, { updateAfter: v }); }