From bcfb69a77791bcd8c69b6d10fd6ce0b24be41230 Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 20 Aug 2014 23:00:59 -0400 Subject: [PATCH] another kink --- js/assets.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/assets.js b/js/assets.js index bf62d642d..3c40e85ef 100644 --- a/js/assets.js +++ b/js/assets.js @@ -915,6 +915,12 @@ exports.metadata = function(callback) { entryOut.repoChecksum = entryRepo.repoChecksum; entryOut.homeURL = entryRepo.homeURL; entryOut.repoObsolete = entryOut.localChecksum !== entryOut.repoChecksum; + // If the asset has a remote home and there is no corresponding + // cache entry, it could be obsolete (because the asset could + // have been modified after uBlock repo was updated). + if ( entryOut.homeURL && typeof entryOut.lastModified !== 'number' ) { + entryOut.cacheObsolete = true; + } } callback(out); };