Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   HTML (http://www.velocityreviews.com/forums/f31-html.html)
-   -   What does "main.css?v=1.5" mean? (http://www.velocityreviews.com/forums/t516272-what-does-main-css-v-1-5-mean.html)

Eric C. 06-21-2007 10:19 AM

What does "main.css?v=1.5" mean?
 
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"/>

Benjamin Niemann 06-21-2007 11:02 AM

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

> 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"/>


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/


All times are GMT. The time now is 04:06 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.