Skip to content

Commit

Permalink
Merge pull request #18 from HuolalaTech/optimize/network-cache
Browse files Browse the repository at this point in the history
optimize: network data will non-cache which readyState not equal 4
  • Loading branch information
wqcstrong authored Nov 15, 2023
2 parents e456640 + a2bb686 commit 915f190
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/network/proxy/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ export default class NetworkProxyBase {
},
false,
);
socketStore.broadcastMessage(message);
socketStore.broadcastMessage(
message,
req.readyState !== XMLHttpRequest.DONE,
);
this.deferDeleteRequest(id);
}

Expand Down

0 comments on commit 915f190

Please sign in to comment.