sorced-jim / SPDY-for-iPhone

A project to build a spdy client library for the iPhone.
Apache License 2.0
224 stars 35 forks source link

SPDY caching #7

Closed markabey closed 11 years ago

markabey commented 11 years ago

The issue is that, when a request using SPDY finishes loading, the response is not presented to the shared URL cache for storage.

This is likely due to the following line in SpdyUrlConnection.m (in onResponseHeaders:)

[[self.protocol client] URLProtocol:self.protocol didReceiveResponse:response cacheStoragePolicy:NSURLCacheStorageNotAllowed];

(I'm not sure whether the problem could be fixed by just allowing cache storage here, or whether this would lead to other SPDY-related problems…)

sorced-jim commented 11 years ago

I changed it to use NSURLCacheStorageAllowed .