SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2010
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    css not updating

    I make changes to a css file, upload it to the web server and reload the php page which links to it but a previous css file version is being used.

    I have rebooted to clear any cache but the same thing happens.

    I change the php file and get instant effect when uploaded.

    Any ideas anybody?

    Thanks

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 2010
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I create a duplicate css file with a different name and link to it in the php file
    and it works fine.

    I link back to the original css file and the changes are not implemented.

    Even more weird.

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,107
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    Sometimes if you do a second page refresh the new version of the style sheet kicks in.

    Another way around it is with a timestamp:
    Can We Prevent CSS Caching? | CSS-Tricks
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •