Reputation: 11
I'm creating a website and the stylesheet isn't updating for the server no matter what I try. It's not browser cache because I have sent it to a friend and he's having the same issue. The thing is the changes are being made in the style.css file when you type the URL in your browser but viewing from firebug shows the old styles.
I have even put a timestamp at the end of the CSS file to ensure that it is unique, still no luck. Restarting Apache didn't do anything either. I have Cloudflare in development mode, even though it's going through an a-record that isn't using Cloudflare.
I'm out of ideas here, this is driving me crazy.
Upvotes: 1
Views: 365
Reputation: 1
If you are using cloud flare in your site, just login to your cloud flare account and navigate Caching-> Configuration then look for the button PURGE EVERYTHING click it.. Do this every time you have html and CSS style changes.
Upvotes: 0
Reputation: 655
Old question, but I’ll answer anyway. If the style.css is rendering differently from the root, it is because cloudflare is caching the old .css. You can check this by turning ‘Development Mode’ on. This will uncache everything. Check your cache settings to reset the new file.
Upvotes: 0
Reputation: 15739
I suggest you to delete the CSS on your server, restart apache, clear browser cache and refresh it again. When the page loads without the style (which it should hopefully load), add it back to the server, restart your apache and again refresh your browser. This will hopefully resolve your issue.
Upvotes: 1