CSS files that have numbers in their query string |
[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" /> original stackoverflow posted here
[eluser]Unknown[/eluser]
Most people just use the current Unix time, as it will always be a different number.
[eluser]Matthieu Fauveau[/eluser]
Hi huuray, I personally use PHP's filemtime().
[eluser]WanWizard[/eluser]
Make that +1. It keeps the URL the same as long as the file hasn't changed.
|
Welcome Guest, Not a member yet? Register Sign In |