CSS and JavaScript File Versioning to Force Refreshing of Your User’s Cache

When you push updates to your site or web app, you may notice issues with users’ cache still holding onto the old version of CSS and JavaScript files. An easy way to force a reload of the files is to call them with a version number in the request like so:


When you update the version of the file it will force the file to reload. This is very handy because you can extend the length of time of the cache on the user’s end or the server and force a reload when an update occurs without any special tricks.

Comments are closed.