UIWebView Ignores Cache Policy on the iPhone but works on the Simulator

I'm using the following line of code to retrieve a web site in a UIWebView
request = [NSURLRequest requestWithURL:myURL cachePolicy: NSURLRequestReturnCacheDataElseLoad timeoutInterval:1000];
on the simulator it does the correct thing, requests just a header to see if the content was modified (304 response).
On the iPhone it only returns 200 response no matter how many times i make the request although it should be returning 304 after the first response. anybody encounter this before?
Thanks in advance. -Isaac
Message was edited by: imosquea

I have a similar problem, though not quite the same.
It seems like my initial page load ("http://www.a.com/index.html") is caching fine, but then all the resources referenced from that html are not cached. I've tried a bunch of different avenues and it seems like the requests for these objects could be easily handled by the delegates for resource loading in WebView, but these delegates are not available in UIWebView...
Does anyone have a simple solution for getting UIWebView to properly cache a page and all the resoureces referenced by that page?

Similar Messages

  • TS1347 just recently my iphone is not syncing calendar to my macbook.  It has worked all along until about a week ago.  It does transfer new items from the computer to the iphone but not from the iphone to the computer.

    just recently my iphone is not syncing calendar to my macbook.  It has worked all along until about a week ago.  It does transfer new items from the computer to the iphone but not from the iphone to the computer.

    Plug you iPhone into your computer, select the iPhone, select the photos tab. Now check (not uncheck) the sync photos from... Select the folder where the photo came from, click apply then sync, now uncheck the sync photos box, click apply, it will ask you if you want to remove the photos click remove, it will not delete other photos exept the ones in the folder that was synced. Then click sync and the photos will be removed

  • Why is the ios6 compatible for all the iphones but not all the phones got the all upgrades, for example the panorama camera??

    why is the ios6 compatible for all the iphones but not all the phones got the all upgrades, for example the panorama camera?? this is another reason I am starting to dislike apple. An ipod is able to us an upgrade but not all the phones are? makes sense

    "why is the ios6 compatible for all the iphones"
    Ios 6 is not available for all iphones. Original Iphone and iphone 3 are not supported.
    "but not all the phones got the all upgrades, "
    This is common for most any device/computer.  Not all iphone/computer/device models can handle all of the new features.  Like any device, hardware is limited and cannot always support all new features and software.

  • HT201774 Deleting MS Exchange emails on the iPhone but not on the server

    Using a MS Exchange account - if I delete a message on my iPad, how can I ensure it is not deleted off the server?  I know how to do this with POP accounts on the iPhone but I can't find the same option on the MS Exchange account settings on the iPhone.

    I don't believe it is possible. I'll have to take a look, but there is no setting I'm aware of that will selectively sync like that, preventing deletions. Exchange and IMAP accounts provide full synchronization. If you want to get it out of sight on the phone, but not delete it entirely, move it to a folder.

  • The iphone not working after the apdate

    My iPhone does not work after update ios 7

    shachaf1101 wrote:
    My iPhone does not work ...
    See Here for
    Frozen or unresponsive iPhone
    Try this First...
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...
    http://support.apple.com/kb/ht1430
    More Info here...
    https://discussions.apple.com/message/19521062

  • Will the iphone 5 work with the 4G network in Belgium?

    I am very happy with the iPhone 5, love it, but today the Belgian Operator made the 4G network available in some major cities,
    but it seems Apple has to "enable" the 4G capabilities for the iPhones in Belgium...
    I bought mine directly through the Apple store.  I wonder will it work with the 4G network here ? Anyone using it in 4G mode here in Belgium?
    Also if someone at Apple reads this (I hope they do) Siri in Dutch would be super!!! I love Siri but now I have to talk very strange to make
    Dutch names understandable for Siri :-)
    kind regards to all

    "4G" is a marketing term, not a technical term.
    The iPhone 5 can operate on any compatible HSPA+ network anywhere in the world. HSPA+ is defined by the ITU as "4G" and is marketed as such by many carriers. The only iPhones I'm aware of that display "4G" in the status bar are those originally intended for AT&T in the U.S.
    LTE is also defined as "4G" and is marketed as such by pretty much every carrier that has an LTE network. When connected to an LTE network, "LTE" should appear in the status bar.
    The frequencies used for LTE networks vary from region to region across the globe. In order to use an available LTE network, the phone you're using must have been sold to work in your region.
    Apple doesn't have to "enable" anything for it to work. All you need is a phone that's compatible with your network, and a plan that allows for LTE data.
    If you purchased the phone from another region, the U.S. for example, it will NOT work on the LTE netwok in your part of the world.

  • Help! isight doesn't work in the morning, but work in the afternoon...

    Hi everyone, I am almost mad with my isight.....I found when I start the laptop in the morning, it doesn't work, it shows"there is no connected camera". But I keep using the laptop for several hours until the afternoon, then I open the isight, it turns out working as normal.....as long as I restarted, it doesn't work again, until waiting for several hours.....I tested these for several days....so strange.
    I tried all the ways mentioned in the "troublesome isight", none of them work. Should I reinstalled the systems or send it to the technical support?
    Thank you so much in advance for you replying!

    xiqing wrote:
    Hi everyone, I am almost mad with my isight.....I found when I start the laptop in the morning, it doesn't work, it shows"there is no connected camera". But I keep using the laptop for several hours until the afternoon, then I open the isight, it turns out working as normal.....as long as I restarted, it doesn't work again, until waiting for several hours.....I tested these for several days....so strange.
    I tried all the ways mentioned in the "troublesome isight", none of them work. Should I reinstalled the systems or send it to the technical support?
    Thank you so much in advance for you replying!
    Welcome to Discussions, xiqing
    I understand that you have tried all relevant suggestions from http://support.apple.com/kb/HT2090
    Restart your Mac and try the PMU/SMC reset one more time. If properly resetting your SMC does not resolve your problem, I think your problem you describe is a hardware one that will require professional service by your Apple-Authorized Service Provider.
    You could try reinstalling Snow Leopard and applying the 10.6.4 Combo Update, but I do not believe that either could resolve the problem you describe.
    *Be sure to backup all your important data files immediately before sending or taking your Mac for service*. When you retrieve your Mac after the work is complete, ask the AASP to show you that the camera is working before you leave the store.
    EZ Jim
    Mac Pro Quad Core (Early 2009) 2.93Ghz w/Mac OS X (10.6.4)  MacBook Pro (13 inch, Mid 2009) 2.26GHz (10.6.4)
    LED Cinema Display  G4 PowerBook  1.67GHz (10.4.11)  iBookSE 366MHz (10.3.9)  External iSight

  • Does the iPhone alarm work when the phone is turned off?

    hi there
    i am wondering if the iPhone alarm will still go on as scheduled if you have the phone turned off at night? thanks in advance -

    ok thanks- that is what i thought - i used to have a different cell that the alarm would work even if you had the phone turned off. so this is a good to know, so that i don't have the phone turned off if i need to wake up in the morning using the alarm.
    thanks again

  • Does the iPhone 4S work with the tom-tom car kit?

    The tomtom car kit still works fine with my old iPhone 4. I can not get it to work with my iPhone 4S at all it does not recognize the car kit.

    I also posted this problem on the tomtom fourums and got a fix from a user. In addtion to the iphone 4 adapter I used a peice of velcro on top of the existing adapter I had in place. Now it works with the iphone 4S. I guess the 4S is slightly thinner the the 4.

  • Can anyone explain why safari is going wrong for me on the iMac but works on the ipad?

    Safari on my iMac desktop has started freezing when blue band is halfway along an address from my bookmarked list. Once it has stuck I can double click on any other address and it will not  open or change the top address bar. If I actually delete the first address manually then I cannot even put a question in the window nor will it accept any bookmarked address. Can any one help?

    1. Power off the router. Unplug it from the wall. Wait for few minuets.
        Power off the router. Wait a while.
        Connect the router back to to the wall.
        Power the router back on. Wait  until all lights are letup properly. It will take a while.
        Restart the computer.
    Start up in Safe Mode
    http://support.apple.com/kb/PH11212
    Empty Caches
        Safari > Preference > Advanced
        Checkmark the box for "Show Develop menu in menu bar".
        Develop menu will appear in the Safari menu bar.
        Click Develop and select "Empty Caches" from the dropdown.

  • Have uploaded my roster to the icloud calendar then synced to iphone and it is out by one day on the iphone but correct on the icloud.  Any ideas?

    Have loaded my roster on icloud via my windows based computer. When I look at it on my phone it is all out by a day. Checked both, not going mad. What I have entered as working on 5th Augus, shows up on 6th August on my phone. I have gone in to setting and removed icloud sync, turned phone off and then reset in settings and same things happens again. Any ideas how to fix this?    

    Your purchased iTunes content is already available to be downloaded to your phone, for free. Non-purchased music would require using iTunes Match. Match requires iTunes 10.5.1 or later. Read here:
    http://support.apple.com/kb/ht4914

  • My iphone is no power i can charge the iphone but not chargeg

    this is the man thapa my iphone is not charge i well chageg the iphone but not coming the power thats way i well upload the iphone supporter.

    Have you tried a reset which is similar to a computer restart and is done by pressing and holding the home button and the sleep/wake or on/off button simultaneously until you see the Apple logo and then release?

  • Imessage stops working on iPhone but works on iPad

    Hi there!
    My imessage will be working perfectly fine on my iPad and iPhone and then suddenly it will stop working on my iPhone but work on the iPad.
    Over tried restarting my iPhone and the internet connection is fine as all other apps work fine on the iPhone.
    And after 5 hours or so, my iPhone will have imessage working again?!
    This keeps happening!
    Please help!!!

    Go into MESSAGES under SETTINGS on each device and sign out of the account then sign back in.  I've had some difficulty particular after upgrading to IOS 8 and signing out and back into the account has fixed it.
    You may have tried this already but wanted to mention it.

  • The photos that I better (improves automatic) are saved on the iphone, but when I transfer them to my PC improvements appear no more, only on iphone. I do not understand why the improvements are just the iphone, and not continue when I transfer the photos

    The photos that I better (improves automatic) are saved on the iphone, but when I transfer them to my PC improvements appear no more, only on iphone. I do not understand why the improvements are just the iphone, and not continue when I transfer the photos to my PC.
    Thanks.

    Chicky, I have searched my computer for "iPod Photo Cache" and 51 folders pop up, plus 3 files (iPodInfo.plist, Photo Database and Image DB Temp.tmp). How do I know which to delete and which to keep? The Apple website page tackling this issue doesn't go into any detail. Thanks yet again.

  • I just got a new iPad air and also own an iPhone 5. I'm receiving most of my text messages on the iPhone, but some but not all are also showing up on my iPad. I don't want them on my iPad, any suggestions on how to get them to stop showing up n my iPad?

    I just got a new iPad air and also own an iPhone 5. I'm receiving most of my text messages on the iPhone, but some are now also showing up on my iPad. I don't want them on my iPad, any suggestions on how to get them to stop showing up n my iPad?

    Go to settings>messages>send and receive at>you can be reached by iMessages at> Uncheck your phone number and you can select your Apple ID emal address if you want to use that for messages.

Maybe you are looking for