MugunthKumar/MKNetworkKit — Issue #21: Cache Behavior
Author: m619
Created: 2012-01-03 13:18:56+00:00
State: open

Hello,

I noticed a weird caching behavior when trying to consume an ASPX page, it goes like this:
1- MKNetworkKit GETs the page and caches it, all good.
2- MKNetworkKit returns the cached version everytime a request is made while the page is not updated.
3- When the page is updated MKNetworkKit first returns the cached version then the updated version once it is finished downloaded, although the weird bit is that this one doesn't replace the first one in the cache.
4- When the page is requested again MKNetworkKit returns the version that was cached the first time, then downloads the page *again*.

I am using MKNetworkEngine directly, not subclassing it. I also checked the headers of the file and found Cache-Control: private in it, I don't know if it matters.