CSS not updating on live server but works on development environment

Usually, some images are cached. My Yii app has some caching but not usually for CSS that I know of. I made the CSS changes and could see the changes take effect on my local development environment but not on live server. I attached two photos of development environment that has the black font and updated navigation bar and the live site that is CSS changes aren’t taking effect with the black font and the navigation bar. All I know what to do is wait and hope that it’s changes take effect. I’m running Apache PHP MySQL and am the developer but didn’t install the server and don’t know what settings are on it to make the changes.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

The first thing I would check is if the site is using a caching proxy service like CloudFlare. This would be set up in the domain’s nameserver settings with the registrar. If a service like this is being used, changes will not appear until the current cache has expired.

Another possibility is that your ISP is doing some caching of their own and is maintaining a cached copy of the old content.

Thanks ! yep it was cloudflare

Thank you! That was it. I use CloudFlare and they were caching my CSS. I found they have a ‘developer mode’ that temporarily turns this off. Problem solved.