Skip to content

Commit f4c4cdb

Browse files
committed
fix: 修复响应头缓存
1 parent ada03be commit f4c4cdb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.14.161",
3+
"version": "2.14.162",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/utils/flow.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,11 @@ export async function getFlowHeaders(url, ua, timeout) {
7373
});
7474
flowInfo = getFlowField(headers);
7575
}
76+
if (flowInfo) {
77+
headersResourceCache.set(url, flowInfo);
78+
}
7679
}
77-
if (flowInfo) {
78-
headersResourceCache.set(url, flowInfo);
79-
}
80+
8081
return flowInfo;
8182
}
8283
export function parseFlowHeaders(flowHeaders) {

0 commit comments

Comments
 (0)