const fs = require('fs');
const now = Date.now();
let html = fs.readFileSync('index.html', 'utf8');
html = html.replace(/app_final\.js\?v=[^"]+/, 'app_final.js?v=' + now);
html = html.replace(/store_module\.js\?v=[^"]+/, 'store_module.js?v=' + now);
fs.writeFileSync('index.html', html);
console.log('Cache updated:', now);
