artifacts / AFCache

AFCache is an HTTP cache for iOS and OSX seeking towards full RFC2616 compliance
Apache License 2.0
361 stars 43 forks source link

Pragma no-cache #4

Closed dqueffeulouatw closed 13 years ago

dqueffeulouatw commented 13 years ago

I think there is a bug in this code (AFCacheableItem) :

    // parse "Pragma" header
    if (pragmaHeader) {
        // check if Pragma: no-cache is set (for compatibilty with HTTP/1.0 clients
        NSRange range = [cacheControlHeader rangeOfString: @"no-cache"];
        pragmaNoCacheSet = (range.location != NSNotFound);
    }

It should be :

        NSRange range = [pragmaHeader rangeOfString: @"no-cache"];
artifacts commented 13 years ago

great, thanks!

fixed and pushed.