Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Problem with safari's cache in ios 5

Since I installed iOS 5, Safari does something it's not supped to do... When I navigate to a page that I've visited recently, Safari loads the page from its cache, rather than checking for and displaying more recently-posted content.


For example, if I visit the home page of the New York Times, it shows me yesterday's news. I can only view today's news by tapping the Reload icon. If I then tap an article's headline and go to another page to read the article, when I tap the Back button to return to the home page, it again displays yesterday's news, and I have to tap Reload to re-display today's stories.


Anyone having the same problem, or know of a solution? Thanks.

iPad 2

Posted on Oct 14, 2011 7:30 AM

Reply
106 replies

May 8, 2012 9:19 PM in response to PastorOfMuppets

Yes. This is the behavior I have seen too. If its just Safari the cache is replaced when the user refreshes the base web page.


But if the page has been added to the Home screen, there is no rhyme or reason for it to get refreshed. Sometimes loading the same page from the not Home screen version does clear it but often not. This is javascript code and also CSS code.


Very frustrating that Apple does not see fit to fix this important feature required to fully support web based applications via webit etc.

May 11, 2012 11:18 PM in response to edgewise

Hello, for my restaurant ordering system i had this issue for a long time now and found that some cache was used for the css and js files when it was in fullscreen mode added to the homescreen.


Every update gave me some issues and it disappeared after a day or so.


So my workarround is to set the time of the ipads that have this issue to one or two days in the future and then load the webapp using the homescreen icon. The new css and js files are loaded. Then set the date back to the actual date.


Hope this will be fixed in a future release. I have site where 50+ ipads are in operation and have to a lot of work when these issues arise. One of my client is okinii, japanese sushi and grill, in germany.

Jun 29, 2012 10:27 AM in response to edgewise

I have the exact opposite problem people are talking about here. I have an iPad 1 with iOS 5.1.1. Travel to and from work is 45 mins on the subway. Currently I'm trying to learn PHP and load several pages from the ww3school. I get on the subway, read the one page and when I go to the next tab, it's blank because it's trying to refresh and there is no connection. I didn't ask it to refresh. It should definitely not do so if there is no connection. Now my 40 mins is spent re-reading all the ads on the subway and craning to read over other people's shoulders. Is there any way to stop it from doing this?

Jun 29, 2012 10:51 AM in response to ChantalC.

Chantal, the problem isn't the cache but the iPad 1. It has a very limiited about of RAM so it cannot store everything that's loaded in the Safari tabs. It doesn't have a very large stored (disk) cache and alas you cannot set that. So, it dumps and reloads. Your best bet is to use a computer (Mac is easiest) and print to PDF then email or load those to iBooks. (if you use email to load, you have to open the enclosure in iBooks to store it there) That will guarantee local use.

Sep 21, 2012 6:05 AM in response to edgewise

iOS 6 is now out and this problem Still exists. CSS and JS fail to clear from the cache and reload from the updated webpage in a homescreen webapp shortcut. I have to use ridme's "fix" to set the time foreward and back again to clear the cache so the webpage updates.


Has anyone found a better solution to this yet? I figured Apple would have fixed it, but I wonder if they even consider it an issue at this point.

Oct 4, 2012 7:41 AM in response to naljubes

Here's how I deal with this. Since I have control over my test environment on the server (call the directory 'test'), I just do


cd ..

ln -s test test2


Then I load the URL with test2 instead of test. This forces Safari to thnk all the javaScript is new. You can repeat this as many times as needed, and go back to the original when the cache finally becomes stale.

Oct 11, 2012 5:58 PM in response to Tim Lethbridge

Hello everyone,


An issue such as this should be resolved by now, a safari/IOS fix should be in place.


Regardles ... since I support some business related websites for some clients that actually strictly use the IPAD I had to do something. These business websites which I support use asynchronous javascript/jquery calls to the server to update the pages without posting, because of the Safari issue the pages would NOT update(as if the JS code was blocked it seemed to me). I tried coding around my pages to bypass the issue but nothing worked and besides in this case it is bad practice to write custom code in a website as a workaround to a browser issue because the new version miss-behaves when it used to work on previous Safari/IOS versions and my websites pages behave properly in the current versions of IE, Firefox and Chrome.


In the end I was able to resolve the problem for my clients business websites by having my clients migrate to Google Chrome for IPAD.

Oct 24, 2014 1:25 PM in response to therealObiWan

Dare I say that this problem seems to STILL be there in iOS 8?


So far the only workaround for me has been to completely delete the web application

And recreate it from Safari after clearing all caches -

THEN it seems to make an effort to fetch the most recent version of files ..


Kinda annoying -

It would be really nice if at least it cleared when you clear the cache in Safari settings.

Problem with safari's cache in ios 5

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.