I think you should check for "no-cache" in Cache-Control also (AFCacheableItem) :
// parse cache-control header, if given
if (cacheControlHeader) {
// check if max-age is set in header
NSRange range = [cacheControlHeader rangeOfString: @"max-age="];
[...]
// check no-cache
range = [cacheControlHeader rangeOfString: @"no-cache"];
if (range.location != NSNotFound)
{
pragmaNoCacheSet = TRUE;
}
}
I think you should check for "no-cache" in Cache-Control also (AFCacheableItem) :