ChenYilong / ChenYilong/ParseSourceCodeStudy

取缓存的疑问

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
2.8k
Forks
529
PR merge metrics
No merged PRs in 30d

Description

由于不指定路径的话,cache默认是自动清除缓存的,那么第二次发起请求的时候,服务端返回数据没有更新,返回的是304,那么通过 NSCachedURLResponse *cacheResponse = [[NSURLCache sharedURLCache]cachedResponseForRequest:request];去取NSCachedURLResponse,不应该是为nil吗,这样的情况,怎么处理

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.