Support

Account

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.