View Full Version : Safari not reloading changed CSS file

06-17-2012, 01:00 AM
Hi - title says it all. I'm working on a website and I make a change to the CSS file but safari stubbornly refuses to render the change. I was finding the same problem with Chrome until I added added a parameter to my file call thus:

<link rel="stylesheet" href="index.css?parameter=1" type="text/css" />

I'm working in Mac (textwrangler is my editor) and testing in Chrome and Safari on Mac, and Chrome and IE on Windows 7.

Of the four, Safari on Mac is the only one that won't reload the CSS!

Obviously this doesn't matter much on my machine, but is there anything else I can do in my code to force my viewers' machines to reload the CSS?

thanks in advance,

Mac OSX Lion
Safari 5.1.7

06-17-2012, 11:32 PM
Sometimes you just need to specifically call out a browser by name so it will render properly. For instance, -webkit-animation, -webkit-appearance, -webkit-border-radius, etc. You may be able to find a quick video tutorial on this over on CSSReset (http://cssreset.com), which is where I tend to find good answers to issues like this. :)