Skip to content

fix: 预请求在不存在缓存时不应该触发equels回调#2306

Merged
hiyuki merged 4 commits intomasterfrom
fix-fatch-usepre-cache
Jan 26, 2026
Merged

fix: 预请求在不存在缓存时不应该触发equels回调#2306
hiyuki merged 4 commits intomasterfrom
fix-fatch-usepre-cache

Conversation

@mackwang112
Copy link
Collaborator

if (isNotExpired && checkCacheConfig(config, cacheRequestData) && cacheRequestData.responsePromise) {}
修改为先判断cacheRequestData.responsePromise,避免在 responsePromise 不存在时调用checkCacheConfig,导致equels回调触发

@hiyuki hiyuki merged commit 4b85bbf into master Jan 26, 2026
6 checks passed
@hiyuki hiyuki deleted the fix-fatch-usepre-cache branch January 26, 2026 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants