[Help] NSURLConnection and cache in simulator/device

Hello,
First let me say, I'm fairly new to obj-c / iphone dev, so If some of the questions I may post in the forum sound silly, I'm sorry
Right now, I was wondering why when I use the NSURLConnection with default protocol caching policy, in the simulator it works pretty fine (one download, then everything from the cache) but on device, it download from the source all the time.
I'm sure my http headers have a correct expiration date..
Maybe there is something to init first about the cache?
If someone can point me in the right direction, I'll be glad
Thanks a lot,
Sebastien

>>I was wondering if the above is the case, and if so, if there's a way to force it to download the file even if it resides in a temp folder somewhere?
You want to modify the call to the server the gets the file. The usual way is to append some random number as a query parameter - something like:
myLoader.load(new URLRequest("http://somedomain.com/script/getMusic.php?r=" + String(new Date().valueOf())));

Similar Messages

  • Help, I can't sync any music to my iPhone 5s or iPad 2 ! :( it says it's finished sync but the music is greyed out and not on my devices.. I've tried unchecking the music and doing it manually. Nothing works. I took it to Apple store Robina no help..

    Help, I can't sync any music to my iPhone 5s or iPad 2 ! it says it's finished sync but the music is greyed out and not on my devices.. I've tried unchecking the music and doing it manually. Nothing works. I took it to Apple store Robina no help..

    So I have found a common denominator to this phenomenon. After having the same problem, I started to recopy my playlist of 500+ songs in groups of 10-20, 30+, 75+, and then over a 100+. Any music I have purchased from iTunes won't copy, but everything else did. Unsure if I made a playlist called "Purchased" at some point or this is an iTunes default, I also noticed it had some of the songs contained in my other playlist and was showing on my iPhone. Regardless of what I did such as dragging music from that playlist to the other and clearing songs from that playlist, I removed it altogether from the iPhone itself vs. doing through iTunes. After that, music copied fine to my playlist.
    So, my theory is that iTunes is getting tripped up on purchased tracks already showing on the phone and all songs are showing grayed out/dotted circle because iTunes can't resolve the conflict with purchased tracks.
    Hope this makes sense and is helpful.

  • Hello! I was on my Mac and then I clicked on iTunes. Then I clicked on iTunes, and accidentally removed my device from my Mac, how can I get it back? Also when I plug my iPod into the computer, it downloads everything, how can I stop this. please help!thx

    Hello! I was on my Mac and then I clicked on iTunes. Then I clicked on Account, and accidentally removed my device from my Mac, how can I get it back? Also when I plug my iPod into the computer, it downloads everything that is on my computer, how can I stop this. please help! please help!!!!!!thank you

    Is the iPod still singed into the account isn Settings>iTunes and App Stores and SettingsZ>iCloudl? If it is then I would not be concerned.
    Also see:
    iTunes Store: Associating a device or computer to your Apple ID
    since you may have started the 90 day window.
    For the other "problem", go to iTunes>Preferences>Devices and check the box that says Prevent iPod....automatically syncing.

  • I was updating my iPhone 5S, suddenly the screen went black and now it won't turn on. Plugged it into my computer and it said "USB Device not recognized..." HELP!!

    I just went to update my iPhone 5S as it asked me to, and it got to the point with the apple logo on the screen and the black loading bar underneath, but then the screen went black and the phone now won't turn on? I went to plug it into my computer and it said "USB Device not recognised"..
    PLEASE HELP ME! It's 1am here in england, I need to be up at 6am for work and won't be able to get up without an alarm... my only option is so stay awake!

    Nothing happened, i managed to get my computer to recognise it and now restoring... but it says 3 hours remaining?! Will i lose everything?

  • Dear Apple I buy a refurbish iPhone 5s the IMEI ******* and ICCID ******** and i restored the device when i restored its locked to iCloud and i don't know the username and password i hope to help me about the problem asap.  Best regard

    Dear Apple
    I buy a refurbish iPhone 5s the IMEI ******** and ICCID ********** and i restored the device when i restored its locked to iCloud and i don't know the username and password i hope to help me about the problem asap.
    Best regard
    <Edited by Host>

    This is a user forum. You aren't talking to Apple here.
    Return your iPhone for a refund. There is no way to remove the Activation Lock. Apple won't get involved.
    <Edited by Host>

  • Hi,i have the new ipad 16gb it was working fine till i went to download te new i tunes and the apple mobile device recovery mode my windows pc cant find the software to download it i need help because my ipad wont work i only see the itunes en usb symbol.

    i have the new ipad 16gb it was working fine till i went to download the new itunes and the apple mobile device recovery mode my windows pc cant find the software to download it i need help because my ipad wont work i only see the itunes and usb symbol can anybody help me.

    Try these instructions:
    http://support.apple.com/kb/TS3281
    You may also have to go to the link in the bottom paragraph if the first page instructions do not work.

  • My browsers (safari and chrome) continue to open an old version of a website. Even though I've cleared my browser history and cache.  Please help!  what else can I do.

    My browsers (safari and Chrome) continue to open an old version of a website - even though I've cleared my browser history and cache.  It's essential I see the newly launched site - rather than the old ones.  It's strange it's happening in both browsers. 
    Please help!

    You, or someone using your computer, hacked the system to redirect certain URL's. The file modified is /etc/hosts.
    The easiest way to fix the hosts file is to restore it from a backup that predates the modification, or to copy the unmodified file from another Mac. If you can't do that, then do as below. Please read this whole message before doing anything.
    Back up all data. This is a simple procedure, but if you don't follow the instructions exactly, you could be left with an unbootable system. In that case, you'll have to restore from a backup or reinstall OS X.
    If you have more than one user account, you must be logged in as an administrator.
    Triple-click anywhere in the line below to select it:
    open -a TextEdit /etc/hosts
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). A TextEdit window should open. At the top of the window, you should see this:
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting.  Do not change this entry.
    127.0.0.1                              localhost
    255.255.255.255          broadcasthost
    ::1                                        localhost
    fe80::1%lo0                    localhost
    Below that, you'll see some other lines. There should be nothing above the first line "##". If you have any doubt about that, STOP and ask for guidance. Make sure you scroll all the way to the bottom of the document. Scroll bars are hidden by default until you actually start scrolling, so you may not realize that you’re not seeing the whole document.
    If the contents of the TextEdit window are as described, close it, then enter the following command in the Terminal window in the same way as before (by copy and paste):
    sudo sed -i~ '11,$d' /etc/hosts
    This time, you'll be prompted for your login password, which won't be displayed when you type it. If you don’t have a login password, you’ll need to set one before you can run the command. You may get a one-time warning to be careful. Confirm. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. Quit Terminal.
    That will fix the hosts file. There is now a copy of the old hosts file with the name "hosts~" in the same folder as "hosts". You can delete the copy if you wish. Don't delete the file named "hosts".

  • Can someone help me when Firefox closes randomly it removes all the cookies and cache, and I am not able to restore lost tabs...?

    For a while now Firefox has randomly shut down for reasons unknown. Sometimes windows reports the error but not always. When I start Firefox back up again, it does not restore my tabs. Also as an added bonus it deletes the cookies and cache, and I don't know why. Furthermore this occurrence has become more and more frequent. Just in the last hour along before writing this complaint, Firefox crashed three times right as I switch users, but not every time I switched. I am a taboholic, addicted to tabs, sometimes 70+, and this is the final straw. This frequency became more and more prominent a few days ago. When it first crashed, Windows was kind enough to let me know of the error which first occurred one to two weeks ago. It has become the very bane of my internet surfing. Someone please help, or I will have to renounce my allegiance to Firefox and switch to the dark side that is Crome.

    <blockquote>... or I will have to renounce my allegiance to Firefox ...</blockquote>
    There is no citizenship oath involved in using Firefox, it's a piece of software.
    Look, if Firefox isn't generating any crash reports, you more than likely have an operating system or hardware issue. If Firefox is generating crash reports you can retrieve that information and post the report numbers here.
    https://support.mozilla.com/en-US/kb/Firefox+crashes#Getting_the_most_accurate_help_with_your_Firefox_crash
    Type '''about:crashes''' in the URL bar and hit Enter.
    Click the hyperlinks to bring up the Crash Report pages and copy'n'paste the URL of each of those reports into the message box here. We'll see if we can help you figure out what is causing those crashes to happen.

  • Simulated device in MAX, self tests without error and has working Test Panels, but doesn't show up in DAQ assistant.

    I'm trying to create a development machine where we can test new code without using our physical hardware. I've followed this guide in setting up a simulated device. I can get to step 3.2b, but the device does not show up in the DAQ assistant. In MAX, the device self tests and self calibrates successfully, and when I open the test panels, I see some sort of signal. I assume this is a default simulated input since I haven't told the device to look for anything? Note that the two devices I'm trying to create show up in the Devices and Interfaces section, but that even after running Self-Calibrate, the Self-Calibration date is still unspecified.
    When I try to test the device and create a voltage input according to the guide, I am unable to see either device in the DAQ task creator.
    Steps 1 and 2 of this guide are obviously satisfied. Step 3 is not, but this is unsurprising since a simulated device wouldn't be found in the Device Manager anyways. Also, I am not running RT, so step 4 is satisfied.
    Does anyone have any ideas?
    Solved!
    Go to Solution.

    That would be because the PXI 5124 is a digitizer not a analog input device.  You need to use the NI SCOPE driver not NI DAQmx
    Jeff

  • Need help disabling bios cache and shadowing

    Can ANYONE help me put get rid of bios shadowing and cache I keep getting blue screen and I'm tired of it every time I login to the Internet. Please show me where directions are for that or what I can do

    Hi @davidknox ,
    Thank you for visiting the HP Support Forums and Welcome. I have looked into your issue about your HP Pavilion dv7t-6100 Notebook and needing to disable BIOS memory options. Here is a link on help  from Microsoft.  Here is another on bug checking.
    Hope it helps you.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • My safari screen is greyed out, I checked and found a response to this question.  I went to settings and cleared history, cookies, and cache, java script is on and I restarted, screen is still grey, cant touch it to do a thing.  Help!

    my safari screen is greyed out, I checked and found a response to this question.  I went to settings and cleared history, cookies, and cache, java script is on and I restarted, screen is still grey, cant touch it to do a thing.  Help!

    That is usually the fix but try this now.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple logo appears - ignore the red slider - let go of the buttons. See if that helps.
    You can also try this - quit Safari. From the home screen - Double tap the home button and your recent apps appear the bottom. Tap and hold down on the Safari icon until it wiggles. Tap the minus sign in the upper left corner to close the app. Tap the home button twice. Restart the iPad.
    Message was edited by: Demo

  • I need help please , i try to use itunes but my iPhone don't appear on itunes, i try everyting ,dowwload itunes again restart computer and iPhone,restart running device support,etc.

    i need help please , i try to use itunes but my iPhone don't appear on itunes, i try everyting ,dowwload itunes again restart computer and iPhone,restart running device support,etc.

    Windows doesn't detect iPhone: http://support.apple.com/kb/ts1538
    Mac: http://support.apple.com/kb/ts1591

  • HT201407 I am Hamza of Iraq as possible understand me,  bought the iPhone from the owner of the device user and I do not know him and have worked formate device to show white screen and please me to activate the device via email and password Please help m

    I am Hamza of Iraq as possible understand me,  bought the iPhone from the owner of the device user and I do not know him and have worked formate device to show white screen and please me to activate the device via email and password Please help me I am po

    You need the Apple ID and password that was originally used to set up the device. Ask the seller to give it to you. If the seller is unable or unwilling to provide the information, the Phone is probably stolen. There is nothing you can do.

  • When extending my wifi network using an Extreme as my main and an Express to extend.. does it help to make sure that both devices are on the same channel or does it even make a difference if they are on different channels?

    when extending my wifi network using an Extreme as my main and an Express to extend.. does it help to make sure that both devices are on the same channel or does it even make a difference if they are on different channels?

    Have you even tried the process in which i have described in my previous post?
    Yes, many times.  If you are setup to "extend a wireless network, the screen looks like this:
    If you click the Wireless Options button, the screen looks like this:
    Where is it on this screen that you see a setting to adjust the channel?  It sounds like you are confusing "create a wireless network"....which does allow you to adjust channels.....with "exend a wireless network" which does not.
    Normally, when you extend a wireless network, AirPort Utility used to always assign the same channel to the extending device. That is no longer the case. It might be the same, or it might be different.  You have no control over this, so you have to accept what AirPort Utility thinks is best.

  • HT201407 i've updated my iphone 3gs software to the latest version of ios and now my device does not activate. i've searched for help here and it still doesn't work...is there anything else i can do, or i have to take the device back to the store?

    i've updated my iphone 3gs software to the latest version of ios and now my device does not activate. i've searched for help here and it still doesn't work...is there anything else i can do, or i have to take the device back to the store?

    Where did you buy this iPhone and how did you unlock it?

Maybe you are looking for

  • IC elimination : closing balance become zero

    Hi BPC masters, I currently have an issue with the Intercompany Elimination (automatic adjustment) : When I run an IC elimination for 2014.12, all my data in the closing balance become zero. I do not know if the "force closing" in the business rule i

  • How to set an actionscript class runnable + some question?

    Dear all,   i am new to actionscript (Flex 3).   i am from java camp and i want to achive some java-style functionality in actionscript,and hope you can help me:   1. how to set an actionscript class runnable??       in java, i just add a "public sta

  • Help!  Itunes not recognizing Ipod Nano.  Have tried several things already.

    Itunes does not recognize my ipod nano (6th generation).  When I plug it in to the computer, nothing happens (except it charges).  I have tried several of the recommendations (reinstalling itunes, resetting ipod, etc. etc.)  I have Windows 7 on my co

  • Aperture not showing shared photostream library

    Aperture used to show me not only my Photostream library, but also a shared photostream library I created. Now it only shows the normal (1000 photos) photostream library, not the shared one I created. However, when I go to share a photo, it gives me

  • UWL Configuration in FPN

    Hi, Could someone please provide the steps to configure UWL in FPN mode. Basically all I am trying to achieve is to get the BI tasks/notifications in main portal UWL. We have FPN setup between main portal and BI portal. We also have UWL configured in