Have seen un common css links was wondering if they are just errors?

Hello all.
I have run across a few link to css bit that were like

<link rel="stylesheet" href="style.css[COLOR="#B22222"]?cache=no[/COLOR]">

or

<link rel="stylesheet" href="style.css[COLOR="#B22222"]?v=1.0[/COLOR]">

(this was actually on a sitepoint page)

but was told that those type of endings fro the href links are incorrect. Do they work? are they passe?
thank you
D

Hi,

They are used to create version numbers on css files so that a cached file is not read and is ideal for when developing a site. You just update the version number each time you make a change and the browser will fetch the new file. There could be an issue with [URL=“http://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/”]proxy servers not caching any files using a query string.

Thank you Paul!
I guess then when you have the final version. you’d just use style.css w/out versioning.
D

Yes that’s the general idea. It’s mostly only while developing that you need a new version each time.