Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

images caching not working offline #15

Open
sallymoc opened this issue May 1, 2012 · 4 comments
Open

images caching not working offline #15

sallymoc opened this issue May 1, 2012 · 4 comments

Comments

@sallymoc
Copy link

sallymoc commented May 1, 2012

I'm using SDURLCache with UIImageView+AFNetworking but it seems the caching on disk of images is failing with some urls
e.g
http://thumb.mediasuite.multicastmedia.com/thumbs/tid/t1335788831/3386908.jpg

The cache file is created but when the request (offline) is executed, it enters to failure block.
I tested that before with other urls like
http://3.bp.blogspot.com/_vk7RX2oEQS0/SkJV7Aa6NXI/AAAAAAAAAIo/D1bWwFlm3A0/s72-c/Benito+Juarez+Airport.jpg
http://cdn-www.trails.com/imagecache/accomodations/72x72/a715afe2dd7f7999d38e9a93bfe7a78c-72x72.png
and offline was working ok.

Please if you can help me with some fix or workaround to solve this issue.

@kcharwood
Copy link

I'm trying to debug a similar issue...

I am also seeing some of my image requests go into storeRequestToDisk:response:, and hitting that first return statement with the comment "Caching failed for some reason"...

@steipete any idea about the that note? Any insight into what could cause that to fail? I am wondering if somehow @jmoccetti's issue is related to mine.

@sallymoc
Copy link
Author

sallymoc commented May 8, 2012

@kcharwood did you find something new related to this issue?
I was debugging and it seems the storeRequestToDisk:response is working ok for my urls..

thanks!

@kcharwood
Copy link

Should have circled back here...

I fixed my issue here:

https://github.com/AFNetworking/AFNetworking/issues/295

@sallymoc
Copy link
Author

sallymoc commented May 9, 2012

Thank you. Regrettably, that didn't work for me. The file is created for cache the image, and read when the request is executed (cachedResponseForRequest is executed apparently without issues) however the operations enter to failure block with no internet error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants