This should get a comment indicating we are intentionally contributing this value to the global scope, and that it is a global.  Maybe it deserves a cool "g" prefix or something otherwise non-subtle?  Maybe even we say "window.htmlCacheRestoreDetectedActivity = false" so it's super blatant?