[thelist] CSS caching

A Maynes andrew at milords.com
Tue Apr 25 09:08:16 CDT 2006

Oh my god I didn't think of using php to change the css on a time basis,
how cool is that, seriously! 


>-----Original Message-----
>From: Nick Daverin [mailto:ndaverin at marian.org] 
>Sent: 25 April 2006 14:55
>To: thelist at lists.evolt.org
>Subject: Re: [thelist] CSS caching
> 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.

More information about the thelist mailing list