From Legacy to Web 2.0

The adventures in bringing sites into the present

Why Automatic Versioning of CSS, JavaScript and Images is a good thing

In an article by Ed Eliot, he talks about why Automatic versioning of CSS, JavaScript and Images is a good thing.

When including CSS and JavaScript resources in your pages you should version file paths and update these version numbers every time the files change. This is necessary as a visitor’s browsers may, depending on settings, continue to cache files even after a change. This can result in a mismatch between your HTML and these external resources which may cause rendering or functionality problems. One will likely encounter similar caching issues with images.

Categories: browsers