We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5edc527 commit 25786c3Copy full SHA for 25786c3
1 file changed
src/js/storage.js
@@ -765,9 +765,12 @@
765
}
766
767
// Extract update frequency information
768
- matches = head.match(/(?:^|\n)(?:!|# )[\t ]*Expires:[\t ]*(\d+)[\t ]*day/i);
+ matches = head.match(/(?:^|\n)(?:!|# )[\t ]*Expires:[\t ]*(\d+)[\t ]*(day|hour)/i);
769
if ( matches !== null ) {
770
v = Math.max(parseInt(matches[1], 10), 1);
771
+ if ( matches[2].toLowerCase() === 'hour' ) {
772
+ v = Math.ceil(v / 24);
773
+ }
774
if ( v !== listEntry.updateAfter ) {
775
this.assets.registerAssetSource(assetKey, { updateAfter: v });
776
0 commit comments