Home › Forums › Gutenberg › Block CSS – versioning for cache › Reply To: Block CSS – versioning for cache
If you are using block metadata as described here then you will need to alter the url string the version https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/ using a filter on this hook https://developer.wordpress.org/reference/hooks/style_loader_src/ this page has an example of removing the version https://wpadminify.com/kb/how-to-remove-version-from-style-and-script-from-page-source/.
If you are calling call wp_enqueue_style() directly then you can supply a version values.
You’ll also need to version your css file and change the version number every time you update it.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.