Skip to content

Commit 374cd92

Browse files
committed
fix(ios): alloc clear cache on ios even if set cache done done
1 parent b832864 commit 374cd92

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/https.ios.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ export function setCache(options?: Https.CacheOptions) {
2020
NSURLCache.sharedURLCache = cache;
2121
}
2222
export function clearCache() {
23-
if (cache) {
24-
cache.removeAllCachedResponses();
25-
}
23+
NSURLCache.sharedURLCache.removeAllCachedResponses();
2624
}
2725

2826
interface Ipolicies {

0 commit comments

Comments
 (0)