Skip to content

The only downloader you need. 下载器的集大成者。

fix(browser): strip URL fragment when looking up header snapshots

XiaoYouChR17ecbcc0cadf
diff --git a/browser_extension/app/src/background/resource-cache.ts b/browser_extension/app/src/background/resource-cache.ts
index c09bf2cd..1fc4b491 100644
--- a/browser_extension/app/src/background/resource-cache.ts
+++ b/browser_extension/app/src/background/resource-cache.ts
@@ -276,7 +276,8 @@ export class ResourceCache {
headerSnapshotByUrl(url: string): HeaderSnapshot | null {
this.removeStaleHeaders();
- return this.headerSnapshotsByUrl.get(url) ?? null;
+ return this.headerSnapshotsByUrl.get(url)
+ ?? this.headerSnapshotsByUrl.get(urlWithoutHash(url)) ?? null;
}
setHeaderSnapshot(