-
Notifications
You must be signed in to change notification settings - Fork 48
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
Some web pages cant be opened in webView after caching - redirect issue #35
Comments
I will have a look at these url's later today. |
Since these are all http pages, dit you set the 'Allow Arbitrary Loads' to yes in your info.plist? Ah, I think i found your problem. For a lot of request the data is returned with Cache-Control=no-cache |
I have added the option EVURLCache.IGNORE_CACHE_CONTROL which you could set to true if you like. |
Yes, I did set 'Allow Arbitrary Loads'. |
Are there any news with this issue? |
It looks like you initially need to load the pages with m. instead of www. |
using an URLProtocol for capturing redirects seems to have some problems. Redirects can be detected, but when offline it seems impossible to return a redirect value. |
Does anyone have an idea how You could let a URProtocol or URLCache return a redirect. It looks like I am not able to instantiate a redirect. |
Try to load demo demo app with webView with any of links below instead of "http://evict.nl":
http://www.newser.com/story/229485/aetna-doing-something-about-workers-student-loans.html
http://www.beckershospitalreview.com/payer-issues/when-the-doctor-orders-time-in-the-park-humana-metcare-partner-for-nature-driven-prescriptions.html
http://www.beckershospitalreview.com/healthcare-information-technology/10-largest-hipaa-settlement-fines.html
After this turn off internet connection and open app again.
Expected result: web page is loaded from cache and displayed
Actual result: web page is failed to be opened
Same behaviour appears for some other urls but not for all.
The text was updated successfully, but these errors were encountered: