What does "main.css?v=1.5" mean?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi all

Can anyone explain why some sites append query strings to their
stylesheet URLs? For example:

If you go here: http://www.lovefilm.com/visitor/home.html

You'll see:

<link rel="stylesheet"
href="http://www.lovefilm.com/lovefilm/static/css/main.css?v=1.5 "
type="text/css" media="all"/>

Re: What does "main.css?v=1.5" mean?

Eric C. wrote:

Quoted text here. Click to load it

The CSS may be generated by a script and the query parameter specifies which
version of the CSS file should be used. If it is a static file though
(which the 'static' in the URL suggests), the query part is simply ignored.

Might be an artifact from a time, when the CSS was dynamically created, e.g.
a CMS which uses dynamic files for the 'development version', but exports
static files for the 'live version'.

Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de /

Site Timeline