I saw this rather handy tip on CSS reloading on Mark Jaquith’s blog today. Such a simple approach, but a great one for when you’re making CSS changes and need browsers to pick up on it immediately, rather than some hours down the line.
Some changes are critical. Now you can version your css by hand, but you don’t have to.
The basis of the change is to use the code:
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.css?v=<?php echo filemtime(TEMPLATEPATH . '/style.css'); ?>" type="text/css" media="screen, projection" />
But for the detail, go read Mark’s post.
Have your say