I have an image that I'm getting ready to upload. I know that I can download it and store it in the AFNetworking NSURLCache I already have, but I already know the what the url will be before I upload it so I want to cache it before I upload it using AFNetworking's NSURLCache.
How can I cache something in NSURLCache without it being downloaded aka an NSURL response? Or can I create an NSURLResponse from a local download aka within the application?
I dont want to have to download it if i'm the user that uploaded it. Also i want to utilize AFNetworking's cache (NSURLCache) before i separately create my own.
Here is how AFNetworking's NSURLCache works under the hood: AFNetworking's NSURLCache