Removes default version query strings from CSS/JS resources, appends the modified time to the filename, and creates the necessary .htaccess rewrites.
Removes default version query strings from CSS/JS resources, appends the modified time to the filename, and creates the necessary .htaccess rewrites automagically.
Explanation from wshadow
If you’re a WordPress developer, this will probably sound familiar: you make a change to one of your scripts or style sheets, reload the page you’re working on to see the result, and… everything stays the same.
Of course, after a moment of confusion, you realise that you didn’t update the $version argument in your wp_register_script() or wp_register_style() call (you are using the dependency APIs and not outputting the or tags directly, right?), so the browser is still using its old, cached version of the file. So you either force-refresh the page, or go back to the source code and change the version.
This can become annoying very quickly. Worse yet, if you forget to properly version your dependencies when you ship the code to users, you can get a number of seemingly bogus bug reports caused by their browsers still using the cached scripts and styles instead of the new files.
One common solution is to append the file modification time to the URL. This will cause the browser to automatically reload the file when it changes.
I can't even begin to tell you how much cooler this will make your site, because honestly... it won't. BUT, it sure saves some headaches!