diff --git a/src/core/drive/cache_stores/http_cache_store.ts b/src/core/drive/cache_stores/browser_cache_store.ts similarity index 95% rename from src/core/drive/cache_stores/http_cache_store.ts rename to src/core/drive/cache_stores/browser_cache_store.ts index 720a8e077..27888102f 100644 --- a/src/core/drive/cache_stores/http_cache_store.ts +++ b/src/core/drive/cache_stores/browser_cache_store.ts @@ -1,7 +1,7 @@ import { CacheStore } from "../cache_store" import { PageSnapshot } from "../page_snapshot" -export class HttpCacheStore extends CacheStore { +export class BrowserCacheStore extends CacheStore { _version = "v1" storage!: Cache diff --git a/src/core/drive/snapshot_cache.ts b/src/core/drive/snapshot_cache.ts index 182bf736e..49a1648e7 100644 --- a/src/core/drive/snapshot_cache.ts +++ b/src/core/drive/snapshot_cache.ts @@ -1,6 +1,6 @@ import { PageSnapshot } from "./page_snapshot" import { CacheStore } from "./cache_store" -import { HttpCacheStore } from "./cache_stores/http_cache_store" +import { BrowserCacheStore } from "./cache_stores/browser_cache_store" import { MemoryStore } from "./cache_stores/memory_store" export class SnapshotCache { @@ -11,8 +11,8 @@ export class SnapshotCache { case "memory": SnapshotCache.currentStore = new MemoryStore(10) break - case "http-cache": - SnapshotCache.currentStore = new HttpCacheStore() + case "browser-cache": + SnapshotCache.currentStore = new BrowserCacheStore() break default: throw new Error(`Invalid store name: ${storeName}`) diff --git a/src/tests/fixtures/http_cache.html b/src/tests/fixtures/browser_cache.html similarity index 80% rename from src/tests/fixtures/http_cache.html rename to src/tests/fixtures/browser_cache.html index f10b6f762..74f59dae5 100644 --- a/src/tests/fixtures/http_cache.html +++ b/src/tests/fixtures/browser_cache.html @@ -8,7 +8,7 @@