Welcome Guest, Not a member yet? Register   Sign In
CSS files that have numbers in their query string
#1

[eluser]huuray[/eluser]
hi all.
any libraries to generate expires for css?
something like this
Code:
<link href="/stylesheets/blueprint/screen.css?1268721265" media="screen, projection" rel="stylesheet" type="text/css" />
<link href="/stylesheets/blueprint/print.css?1268721265" media="print" rel="stylesheet" type="text/css" />

original stackoverflow posted here
#2

[eluser]Unknown[/eluser]
Most people just use the current Unix time, as it will always be a different number.
#3

[eluser]Matthieu Fauveau[/eluser]
Hi huuray,

I personally use PHP's filemtime().
#4

[eluser]WanWizard[/eluser]
Make that +1.

It keeps the URL the same as long as the file hasn't changed.
#5

[eluser]huuray[/eluser]
thanks for reply all.




Theme © iAndrew 2016 - Forum software by © MyBB