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

Your name:

Reply:


Posted by Benjamin Niemann on 06/21/07 11:02

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/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация