You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Safari reloading pages when going back

What's up with Safari constantly reloading pages?


For example, say I'm on reddit, click a thread, read, swipe back there is a substantial pause while it reloads the entire page. Why can't it just use the cached version and be instant? Happens on any site and did not used to behave like this in Lion.

MacBook Pro, OS X Mountain Lion

Posted on Jul 31, 2012 7:56 AM

Reply
98 replies

Jul 12, 2013 10:04 PM in response to charleyfromNZ

Well we are all here for the same reason and have yet to find a viable solution except the single process mode which for me I don't find it a viable solution since it disables the swipe.


Honestly, at this point the best alternative is to download google chrome or firefox. Takes a few minutes and whammo don't have the problem anymore.


I know, I know. I like using Safari also and it doesn't hurt to have both browsers open and use Safari most the time and when you get on a site where you use the back button quite a bit and don't want it to refresh then just use Chrome.

Aug 23, 2013 9:21 AM in response to charleyfromNZ

Hi guys, as everyone here i had this annoying problem of reloading and i solved it in a very easy and unexpected

way. I don't guarantee it will work for you as i don't really understood it, here's the very simple procedure i did (i have adblock and do not track working on safari):


  1. I downloaded NoPageCache from http://canisbos.com/nopagecache (seen on page 1 or 2 on this thread)
  2. I quit (cmd q) safari and reload it
  3. I tried the app and it was still reloading pages as i backed on a forum (sad 😟)
  4. I disabled and removed from safari the app (preferences/extensions)
  5. Surprisingly it's not reloading anymore pages


You should give it a try it's very easy, but it's not guaranteed to work plus i don't know how to put back the reloading feeature (lol) if i want t back in the future.


Hope it will work for you

Sep 28, 2013 11:27 PM in response to charleyfromNZ

I was having the same problem. This is a percieved delay.


By default, Safari uses it's cached version of the previous page to refresh the window when navigating back, and when it's pulling from its cache, the refresh happens quickly enough that we don't really notice. When Safari refreshes the page from the server, we see a longer delay while it does so. We're used to both of these scenarios from pre-swipe-gesture days.


Under normal circumstances, Safari will only refresh the page from the server either because it's been told to do so by the webpage, or an extension requires it. For example:


Many web pages have a javascript onLoad call to refresh the page every time it's loaded (this includes when it's loaded from the cache). So when Safari reloads the page from its cache, the javascript in that page forces safari to do a refresh from the server. This is why disabling Java fixed it for some people.


Other web pages use HTML code to achieve the same onLoad server refresh or to prevent a web browser from caching the page in the first place. Since it's coded in HTML, nothing will disable this behavior, this may be why nothing works for some people.


Some individual extensions or plugins require a server refresh on page load, this is why disabling some or all extensions fixed it for some and disabling plugins fixed it for others.


FYI, (for testing) Gawker sites use one of these refresh-on-page-load strategies. In either of these cases, Safari is forced to refresh the page from the server.


When you use the swipe-back navigation, Safari performs the animation you see where the page slides off to the right, revealing the previous page below it. Safari does this by substituting the "live" webpage with a snapshot of both the current and the previous pages to perform the animation. Once the animation is complete, Safari then reloads the page from its cache, and if instructed by the webpage, refreshes it from the server. If the page included the HTML meta tag "NO-CACHE", then there is no page in Safari's cache to draw from and it has no choice but to refresh it from the server.


You can see this snapshot substitution happen via the Debug menu. (look back on this thread or google for how to enable it.) Select Debug > Miscillaneous Flags > Discolor Fluid Swipe Snapshots


Now navigate to a page and swipe back. You'll see the snapshot that Safari is using to show you both the page you're on and the previous page during the animation because it'll be grayed over with a dull brown-ish color. The discoloration shows you that you're not seeing the live webpage itself, but Safari's snapshot of it. Once the animation completes, you'll see the discoloration go away and the previous page is fully displayed. Safari then reloads it as explained above.


Now go to System Preferences > Trackpad > More Gestures, and change "Swipe between pages" to "Swipe with two or three fingers". Swiping with three fingers bypasses Safari's swipe-back animation. Now navigate using a three finger swipe and you'll see what Safari is doing without the animation, and it feels normal.


The percieved part:

The swipe-back animation makes you take notice of the fact that it's refreshing. Because you're seeing the page displayed underneath the one that's sliding out, you expect it to remain static once the animation finishes. Then it refreshes and you're like, "What the ****? it was just there, why did it have to refresh?" Without the animation, it feels normal.


To fix it, perhaps Apple could code Safari to keep recent history pages open and active in seperate processes (like it currently does with open tabs and windows) and display that at the end of the snapshot animation instead of pulilng from its cache. It might be a worthy memory trade-off. PSST - you listening, Apple? 🙂


As it sits, the animation is a cool idea, with a no-win implimentation.


Unfortunately, I have not found a way to disable the animation on a 2-finger swipe. So when I browse Gawker sites and other regulars such as Digg and Reddit, which I know force a refresh, I'll use a 3-finger swipe to navigate.


Hope this clears up some confusion.

Safari reloading pages when going back

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