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

Any way to block cache or force a refresh? #12

Open
rwrife opened this issue Sep 4, 2012 · 1 comment
Open

Any way to block cache or force a refresh? #12

rwrife opened this issue Sep 4, 2012 · 1 comment

Comments

@rwrife
Copy link

rwrife commented Sep 4, 2012

Is there any way to flag a request or url so that the caching layer forces a connection to the internet and refreshes the cached file? I thought I could create a category off of NSURL or NSURLRequest that would add a "forceRefresh" property that I could read in you startLoading method, but it appears that something inside the system is stripping off my custom property.....I suspect it is doing a manual copy of those objects.

@rwrife
Copy link
Author

rwrife commented Sep 13, 2012

So I think I can create a category or inherit off of NSURL and include a nocache and refreshcache property, then in :canInitWithRequest have it check those properties, if nocache, return no, if refreshcache, get the cachepath for the url, delete any cached file located there.

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

1 participant