[thelist] CSS caching

Nick Daverin ndaverin at marian.org
Tue Apr 25 08:55:18 CDT 2006


<snip>
 Add a query string to the css call, or change the filename.  E.g.:
 <link rel="stylesheet" media="all" href="/css/web.css?version=1234" />
 Or add it dynamically with PHP, e.g.:
 <link rel="stylesheet" media="all" href="/css/web.css?v=<?php echo time();
 ?>" />
 (you might use date() to make it change every 10 minutes or something
 instead of every second).
</snip>

Thanks Max, I hadn't even thought of that.

-Nick





More information about the thelist mailing list