Why GUID as part of css Link (href)?

R

Robert Johnson

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.
 
G

Guest

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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,829
Latest member
PIXThurman

Latest Threads

Top