---
title: Why is my CSS not updating?
url: "https://pressable.com/knowledgebase/why-is-my-css-not-updating/"
published: 2013-10-01
modified: 2025-09-11
author: Wayne McWilliams
---

If you are not seeing changes that you have applied to your website, you may need to clear your browser cache and/or the CDN cache.

## Browser Cache

Browsers can often cache files independently of directives from the server. We have a guide outlining how to flush the cache in all popular browsers available [here](https://pressable.com/knowledgebase/how-to-clear-your-browser-cache/).

If you are **adding/modifying in-line CSS or JavaScript** and not seeing the changes reflected in the HTML source, the page is likely being cached. The solution may be to [purge the WordPress object cache](https://pressable.com/knowledgebase/how-to-purge-cache-in-wordpress-cdn/), which stores our page caching (Batcache) renders.

If you are **adding/modifying CSS or JavaScript in files**, the file itself may be cached. The solution may be to 1) ensure you are properly enqueuing [CSS](https://developer.wordpress.org/reference/functions/wp_enqueue_style/) and [JavaScript](https://developer.wordpress.org/reference/functions/wp_enqueue_script/) and 2) update the `$ver` parameter in the `wp_enqueue_style()` and `wp_enqueue_script()` functions.

Updating the `$ver` will force the browser to download the file anew and is a good mechanism to bust not only the browser cache, but the CDN cache as well.

## Edge Cache

If the [Edge Cache is enabled](https://pressable.com/knowledgebase/edge-cache/#enabling-and-disabling-edge-cache), static assets will be cached. If you do not wish to bust the cache with parameters, you should be able to [flush the CDN cache](https://pressable.com/knowledgebase/edge-cache/#purging-flushing-edge-cache) and achieve the same effect. (That said, it’s up to the browser to make the request in this case.)

## Plugin/Theme Cache

Some plugins and themes include their own caching which can result in changes not being reflected until they are cleared. The most common of these are performance-related plugins and themes such as Divi and Elementor.
