0

I have a problem with css file versioning. When Im using a file name "general.css" its work fine but if I change the file name on "general.css?v1.1" its not working. I cant find this file as normal css file, for example in url address or page sources.

I`m expecting that, the css file will work with file name "general.css?v1.1".

1 Answers1

0

I don't think that adding the query string ?v=[number] makes for a valid file name, which would explain why your HTML isn't registering it. You have to rely on other methods to get the site to register a version. This topic seems closely related to WordPress development and cache issues, and with that, you are able to pass a version number to the wp_enqueue_style() function. This will control your version number.

See https://youtu.be/1WJqINEp6qI

JordanH
  • 98
  • 10