Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS and Variable Passing 1

Status
Not open for further replies.

bambock

Programmer
Oct 26, 2005
60
0
0
US
I recently saw something like this in a stylesheet link tag:

Code:
<link rel="stylesheet" href="/css/marketer.css[highlight #ffcc99]?spts=20080307-1055[/highlight]" type="text/css" />

What is the purpose of the highlighted text? It looks like a time stamp being sent, but I've never seen a variable passed to CSS before. My guess is that used for tracking in httpd access logs???

Thanks for the info,
B
 
It is a method used to refresh users css files rather than the cached version. Say for example you made a change to your css file and it didn't have that time stamp variable. Your visitors would just use their cached version of the css when they visit your site and therefore not see the change you made. With the method above, the developer could change the time stamp and the browser would re-download the css file as it sees it as being a completely different file and therefore the visitor instantly sees the change.


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top