Force update of a JS file in WP (prevent cache)

If this is the old register script:

Then you should change it to:

Then the file gets a version number, witch means, it would be updated to all users. Then you are sure that there is no cache of the file.

Leave a Reply

Your email address will not be published. Required fields are marked *