Why won't Safari display altered uploaded files?

If I make some changes in my web page, some changes in CSS setting, and upload the page, it continues to display in the former format. However, if I check Firefox, the newly edited file appears just fine.
I tried repeatedly emptying the Safari cache, and even used Onyx to empty all browser caches, and of course repeatedly try reloading the page but it still does not update.
Does anyone know why this is so? Is there a solution?

Thanks,
Richard

iMac G5, Mac OS X (10.4.8), 1.5 gig memory

Posted on Sep 25, 2007 2:58 PM

Reply
14 replies

Sep 25, 2007 4:04 PM in response to Richard Pitcairn

However, the question mark worked on another page in which I had changed html and was not coming up with new content. This time the new page came up.
Perhaps the problem with the other page is that I changed the padding on a table cell using css so that on hover a box would appear with different color. Worked all right before so I thought it would work to change some of the parameters and, as I said before, works in Firefox. But in Safari, box stays same size on hover so maybe there is some limitation on how Safari reads CSS?

Sep 25, 2007 4:13 PM in response to Richard Pitcairn

Since the .css file is "called" when the page (.html) file is loaded you should get new content by adding the? mark to the URL.
No way for any ISP to load individual page elements (one from a cache and another from the page code) that I'm aware of.
Use the Safari "Activity Window" to view the contents of any loaded page element and compare to "older" versions.

Sep 25, 2007 4:48 PM in response to QuickTimeKirk

Well I checked the activity window and all looks right. It shows the css file being opened and accessed. I went back into Adobe GoLive and once again transferred the files to the site. In GoLive, the file previews as expected, that is with the css changes I made. Looks the same as in Firefox. But when previewed in Safari, it is not the same — the padding is gone. So must be a limitation in Safari, that it cannot render the css code for padding. What you think?

Richard

Sep 25, 2007 5:03 PM in response to Richard Pitcairn

Safari can most definitely render CSS padding styles, so the problem is something more complicated than just that.

For what it's worth, in my daily web design work I normally check the pages first in Safari, then in other browsers. I've never had a problem with Safari not loading new .css files (over and over again, for hours every day) so the caching problem is also more complicated than just being a Safari fault...

Sep 25, 2007 5:12 PM in response to Rachel R

A puzzle to me. I have emptied all the caches I can think of. Especially odd that I can see the changes in GoLive or BBedit (as previews), but not in Safari (as a preview). Then again, online in Firefox but not Safari.
Should I be thinking that there is an interference with Safari plugins? I have a few. Also, would it help to trash the Safari prefs?

Sep 25, 2007 5:26 PM in response to Richard Pitcairn

Especially odd that I can see the changes in GoLive or BBedit (as previews), but not in Safari (as a preview).


Ah, but when previewing in GoLive and BBEdit, they're loading the files on your +hard drive+. So that's not surprising at all.

But yes, I agree that Firefox getting different results viewing the files online is puzzling. All I can think of is that there's some odd interaction going on between the way Firefox sees a cached file your ISP is feeding you (perhaps knowing it's cached and refreshing it?) and the way Safari sees a cached file. (That's really a shot in the dark... just all I can think of.)

More a testing idea than anything else: Try changing and uploading the CSS file, see if when first loaded in Safari (the actual CSS file online, not the one on your hard drive and not the HTML file) you see the old version, and then refresh to see if you then see the new version. Then try reloading the page that uses that CSS file.

Message was edited by: Rachel R

Sep 25, 2007 5:38 PM in response to Rachel R

I will try what you suggest. But want to make clear in regard to what you said here:
+Ah, but when previewing in GoLive and BBEdit, they're loading the files on your hard drive. So that's not surprising at all.+
That I am also previewing the file in Safari and also loading from my hard disk at that time. So that suggests to me, since Safari does not render it right, that it does not have to do with the online server but something about Safari itself.

Sep 25, 2007 6:01 PM in response to Richard Pitcairn

You confused me a little here. Earlier you wrote:

t I can see the changes in GoLive or BBedit (as previews)


but then you say:

That I am also previewing the file in Safari and also loading from my hard disk at that time. So that suggests to me, since Safari does not render it right


Are you seeing changes made to CSS files when previewing in Safari ... or not? I might have read something wrong, but I had the impression you were saying previews in Safari show CSS changes, while previews online do not.

Also, I think there are two things happening and one is confusing the matter. Earlier you wrote:

But when previewed in Safari, it is not the same — the padding is gone.


My feeling was that this was a separate issue, not a problem with caching. (To my knowledge and in my experience, Safari never uses cached files when viewing files on the hard drive.) My thought was that this is a CSS conflict or syntax problem.

Test for the caching issue (in previews vs. online) with something obvious, rather than your padding style... something like a red border or a text style, so you'll be sure if it's there or not.

Message was heavily edited by: Rachel R 😉

Sep 25, 2007 6:21 PM in response to Rachel R

OK. Here is what I have found out so far. I changed the css coding to put a thick red border on top of the hover over the anchor. I previewed within GoLive and it looked as expected. Previewed in Safari (on hard disk) and looked as before — no red. I "refreshed" the load on Safari and it came in with red border. So far, so good.
Loaded the changed files (including the css external file) on to the server. No way can I see the red border in Safari by refreshing, by putting the question mark after the url, nothing. However, can see if just fine in Firefox.

Sep 27, 2007 6:08 AM in response to Richard Pitcairn

This still makes me think the problem has two facets. That is, it appears to be caused by (1) an ISP (or router?) caching problem, exacerbated by (2) a problem in the way Safari deals with cached files fed to it over a network, not recognizing that they're cached and therefore not forcing a refresh.

I'm at a loss beyond that, though. Does anyone know what would cause this and, even better, what the solution might be?

There have been other cases in which Safari and other Apple apps interact differently with a network than third-party apps. This is reminiscent of a problem that occurs occasionally when the system spontaneously adds proxy settings to the Network preferences, resulting in Apple apps being unable to make connections to some web pages while third-party apps are unaffected.

In fact, it can't hurt to check for that. Go to System Preferences and click on Network. If necessary click on your current connection (e.g. Airport, Ethernet, etc.) and click "Configure." Click the Proxies tab. Are there any settings checked in the proxy server list? If any proxy settings have appeared that you don't know you need for your connection, remove them, click "Apply Now," and close the preferences window. You may need to quit/relaunch Safari and even restart the Mac for the changes to fully take effect.

That's a long shot, but a possibility nonetheless....

Sep 27, 2007 8:52 AM in response to Rachel R

Rachel,
I checked the Network settings, proxies. There were none checked and the "Configure proxies" is set at "manual" and the "Use passive FTP mode (PASV)" is checked. Otherwise all rest unchecked.

I think it must be as you suggest about Apple Aps. I know there are some bank web pages I go to that I cannot use Safari with and have to resort to Firefox. So it may be related to some function as you describe.

Thanks for your thoughts.

Sep 27, 2007 12:12 PM in response to Richard Pitcairn

There were none checked and the "Configure proxies" is set at "manual" and the "Use passive FTP mode (PASV)" is checked. Otherwise all rest unchecked.


That's as it should be, so there's no problem there.

I think it must be as you suggest about Apple Aps. I know there are some bank web pages I go to that I cannot use Safari with and have to resort to Firefox


That's a bit different. That's the result of programming by the bank web sites, some of which actively block all but the two or three browsers they "support," some just having bad coding that doesn't work in any but a few browsers.

But regardless, I'm stumped on this problem. It's not something I've experienced in my full time web work. I think there has to be an ISP or router caching component (most likely the former), but obviously it doesn't affect other browsers, and I don't know why.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why won't Safari display altered uploaded files?

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