Skip to content

Commit

Permalink
fix: 修复响应头缓存
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Jan 14, 2024
1 parent ada03be commit f4c4cdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.14.161",
"version": "2.14.162",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js",
"scripts": {
Expand Down
7 changes: 4 additions & 3 deletions backend/src/utils/flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ export async function getFlowHeaders(url, ua, timeout) {
});
flowInfo = getFlowField(headers);
}
if (flowInfo) {
headersResourceCache.set(url, flowInfo);
}
}
if (flowInfo) {
headersResourceCache.set(url, flowInfo);
}

return flowInfo;
}
export function parseFlowHeaders(flowHeaders) {
Expand Down

0 comments on commit f4c4cdb

Please sign in to comment.