X
X

Prevent stylesheet from being cached

Link

To prevent a stylesheet from caching in WordPress using PHP, you can add a query string to the stylesheet URL in your theme’s functions.php file. For example, use wp_enqueue_style( 'your-style-handle', get_stylesheet_uri(), array(), time() ); to append the current timestamp, ensuring the browser fetches the latest version on each page load