# The updated .css file does not apply to the website

**URL:** <https://forum.infinityfree.com/t/the-updated-css-file-does-not-apply-to-the-website/90082>\
**Category:** Hosting Support\
**Created:** [February 15, 2024, 4:44pm UTC](https://forum.infinityfree.com/t/the-updated-css-file-does-not-apply-to-the-website/90082 "2024-02-15T16:44:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![lovebug](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/lovebug/32/57624_2.png) [@lovebug](https://forum.infinityfree.com/u/lovebug)\
**Post date:** [February 15, 2024, 7:53pm UTC](https://forum.infinityfree.com/t/the-updated-css-file-does-not-apply-to-the-website/90082/3 "2024-02-15T19:53:15Z")

</div>

This is a issue with the browser cache and not a hosting issue

The web browsers will cache the old version of the css and ignore the updated file

You can try to clear the browser cache but some browsers are really stubborn and still refuse to update

The best thing is to use a new file name when you make a change css001.css css002.css etc to force the browser to use the new version

I also had this same issue and I ended up having to write a small bit of php code to handle this automatically without having to make changes to filenames and pages, see this link below

> [@fix for stubborn browsers cache and css files](https://forum.infinityfree.com/t/fix-for-stubborn-browsers-cache-and-css-files/41400):
>
> I’ve found that browsers have a habit of keeping CSS files in the cache which is a problem when developing sites. This is also an issue for anyone viewing your site as any changes made to the CSS will not be shown in the viewer’s browser. I have found a way to allow changes to CSS files to instantly update in the browser when a page is loaded or refreshed without the need to clear the cache. This fix uses one line of PHP code and so requires that your page has the .php file extension. This i…

---

_[View the full topic](https://forum.infinityfree.com/t/the-updated-css-file-does-not-apply-to-the-website/90082)._
