Fix refresh to remove only data for current project

This commit is contained in:
D. Berge
2025-08-03 13:48:51 +02:00
parent 1066a03b25
commit 11e84f47eb

View File

@@ -881,7 +881,13 @@ export default {
async refresh () {
const cache = await caches.open("dougal");
for (const key of await cache.keys()) {
cache.delete(key);
// Match only resolved requests
if (key instanceof Request) {
if (key.url?.match(`/project/${this.$route.params.project}`)) {
console.log("removing", key.method, key.url);
cache.delete(key);
}
}
}
await this.$root.sleep(300);
this.getSequenceData();