I have seen a web page source code containing the following css declaration at the header:
<link rel="stylesheet" href="/site_media/base.css?v=747" />
What is the use of "?v=747" at the end of this CSS declaration?
I have seen a web page source code containing the following css declaration at the header:
<link rel="stylesheet" href="/site_media/base.css?v=747" />
What is the use of "?v=747" at the end of this CSS declaration?
It prevents browser caching from being an issue with new releases of the webapp
To bypass the caching mechanism of the browser. If the file is updated, the version (I guess that's what v stands for) will be incremented and the browser will not use the cache, but download the file, since it is a different URL.
That's probably a version number. When the value for v
changes, the browser will think it is a new file and fetch it (so that the file is not cached by the browser between different versions).
Typically the ? designates that following code is the query string for the url. Probably this site is running code to create a dynamic css file