NSURLCache does not clear stored responses in iOS8

前端 未结 3 722
轮回少年
轮回少年 2020-12-10 02:20

Here is the sample function I call when i need to clear cache and make a new call to URL

- (void)clearDataFromNSURLCache:(NSString *)urlString
{
    NSURL *r         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-10 02:58

    I got a sufficient result reseting the cached response for a specific URL, changing the cache control to something that would never be returned like a "max-age=0" in the header. Look here

提交回复
热议问题