What does appending a query string to the end of a style sheet do? I often see:
some-stylesheet.css?ver=1.2.3
Thanks.
What does appending a query string to the end of a style sheet do? I often see:
some-stylesheet.css?ver=1.2.3
Thanks.
Usually people use it to prevent caching of the CSS file.
It could also be used by the server software (Apache, for example) to load a specific version of the CSS based on the string.
Adding a new query string forces the browser to reload the file instead of using a cached one.
it helps with caching, if you append a query string the browser treats it like a new file, that way when you make changes they are shown immediately, not after you clear the browser cache
This is used in order to workaround browser caching while developing. If you increment that number in your HTML, browser will suppose it's a new file that he has not see ever before and will render the last version of it.
Problably they want to show you the newest version of the CSS, without caché of the browser. So using a parameter its solved.