CSS Files

Soldato
Joined
8 Oct 2005
Posts
4,184
Location
Midlands, UK
Have seen this a few times lately, what is the purpose of adding kind of querystring data including a css file. E.g.

Code:
<link href="/css/style.css?65463456" media="screen" rel="Stylesheet" type="text/css" />

Ta
 
pin.gif
Page rank
5




pointer.gif


It's a bad idea, because the benefit of having css in external files is that it allows for caching.

tbh I'm thinking of doing this with client sites from now on. I'm sick of saying press ctrl and f5 to do a hard refresh :)

From what I can see it's good idea as:

  • Updates to my css file will show instantly
  • May be an idea to use it locally when developing a site - could add a random number to the css fill
Love learning little things like this, sad eh? :)
 
Back
Top Bottom