All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

CSS file not updating

  • # September 24, 2009 at 7:37 pm

    Working on wordpress install. When I make changes to my CSS file they are not showing up. They will show up later(maybe like 5min or 10 reloads) I have tried emptying the cache in safari and firefox. My PHP files are updating just fine.


    # September 24, 2009 at 10:17 pm

    Do you hold the shift button when you click the refresh button? That’s usually called a hard-refresh and it has better results than regular refreshes (in a lot of browsers).

    # September 25, 2009 at 9:15 am

    i also heard of using a random query string to stop wordpress caching the CSS file..

    something like

    css/style.css?< ? echo random_number() ?>

    simplified example but I think that’s how the method goes, maybe someone can clarify this.

    # October 1, 2009 at 5:53 pm

    Try what chris said, it work pretty much everytime. I still prefer to use the ol’ good Ctrl + F5 though, instead of holding Shift when I click Refresh.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed