Grow your CSS skills. Land your dream job.

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.

    Thanks,
    Aaron

    # 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

    Code:
    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.

*May or may not contain any actual "CSS" or "Tricks".