Why GUID as part of css Link (href)?

Discussion in 'ASP .Net' started by Robert Johnson, Jan 22, 2009.

  1. I'm reviewing an existing ASP.NET Web app, and at one point the code
    programmatically determines the css file name (and path) to be sent to the
    browser to be included in the markup of the current page.

    In addition to rendering the path to the css file, the code appends "/" + a
    new GUID value... like this:

    UserControls/Styles/StyleSetThree.css/21454a5c-bc5e-4d56-9354-34db01351512

    Question: Why the GUID like this? What does having a unique value do?

    Thanks.
     
    Robert Johnson, Jan 22, 2009
    #1
    1. Advertising

  2. On Jan 22, 7:35 am, "Robert Johnson" <> wrote:
    > I'm reviewing an existing ASP.NET Web app, and at one point the code
    > programmatically determines the css file name (and path) to be sent to the
    > browser to be included in the markup of the current page.
    >
    > In addition to rendering the path to the css file, the code appends "/" + a
    > new GUID value... like this:
    >
    > UserControls/Styles/StyleSetThree.css/21454a5c-bc5e-4d56-9354-34db01351512
    >
    > Question: Why the GUID like this? What does having a unique value do?
    >
    > Thanks.


    to prevent a cache maybe?
     
    Alexey Smirnov, Jan 22, 2009
    #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. CRON
    Replies:
    24
    Views:
    202,063
    Adrienne Boswell
    Jun 20, 2006
  2. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,090
    Smokey Grindel
    Dec 2, 2006
  3. Soren Vejrum
    Replies:
    4
    Views:
    674
    Lasse Reichstein Nielsen
    Jul 5, 2003
  4. saiho.yuen
    Replies:
    3
    Views:
    458
    kaeli
    Sep 14, 2004
  5. Replies:
    2
    Views:
    511
Loading...

Share This Page