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

Discussion in 'HTML' started by Eric C., Jun 21, 2007.

  1. Eric C.

    Eric C. Guest

    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"/>
     
    Eric C., Jun 21, 2007
    #1
    1. Advertising

  2. 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/
     
    Benjamin Niemann, Jun 21, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Pratip Mukherjee

    Help: what does this VHDL code mean?

    Pratip Mukherjee, Jun 22, 2005, in forum: VHDL
    Replies:
    16
    Views:
    1,281
    Kim Enkovaara
    Jun 27, 2005
  2. methi
    Replies:
    1
    Views:
    847
    info_
    Jun 23, 2005
  3. Li Ma
    Replies:
    1
    Views:
    2,282
    Roedy Green
    Mar 9, 2009
  4. Rahul
    Replies:
    4
    Views:
    578
    Robert Kern
    Apr 7, 2009
  5. C Barrington-Leigh
    Replies:
    1
    Views:
    1,209
    Tim Leslie
    Sep 10, 2010
Loading...

Share This Page