Skip to content

取缓存的疑问 #20

Description

@flyOfYW

由于不指定路径的话,cache默认是自动清除缓存的,那么第二次发起请求的时候,服务端返回数据没有更新,返回的是304,那么通过 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