Skip to content

缓存的疑虑 #21

Description

@flyOfYW

由于没有设置路径的话,默认cache会自定清除缓存,假设第二次发起情况的时候,服务端返回的是304,但是此时本地对应的request的cache被清除,那么 通过 NSCachedURLResponse *cacheResponse = [[NSURLCache sharedURLCache] cachedResponseForRequest:request];取的NSCachedURLResponse不是就是为nil了吗,那这样的情况该怎么处理

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions