// v1.187.7.45-hotfix32: Build version mismatch → aggressive cache clear
(function() {
try {
var CURRENT = "v20260830-094038";
var saved = localStorage.getItem('tw_build_v');
if (saved && saved !== CURRENT) {
console.log('[cache] New build detected:', saved, '→', CURRENT, ', clearing...');
if ('caches' in window) {
caches.keys().then(function(keys) {
return Promise.all(keys.map(function(k) { return caches.delete(k); }));
}).then(function() { console.log('[cache] All caches cleared'); });
}
}
localStorage.setItem('tw_build_v', CURRENT);
console.log('[cache] Build version:', CURRENT);
} catch (e) {}
})();
// v1.187.7.45-hotfix32: Build version mismatch → aggressive cache clear
(function() {
try {
var CURRENT = "v20260830-094038";
var saved = localStorage.getItem('tw_build_v');
if (saved && saved !== CURRENT) {
console.log('[cache] New build detected:', saved, '→', CURRENT, ', clearing...');
if ('caches' in window) {
caches.keys().then(function(keys) {
return Promise.all(keys.map(function(k) { return caches.delete(k); }));
}).then(function() { console.log('[cache] All caches cleared'); });
}
}
localStorage.setItem('tw_build_v', CURRENT);
console.log('[cache] Build version:', CURRENT);
} catch (e) {}
})();