hello

I would like implement this trick on template of my joomla site:

http://davidwalsh.name/prevent-cache

My goal is to avoid to cache only one specific css file (template.css). I looked in my template and I found this code:

PHP Code:
    <?php 
        $gantry
->displayHead();
        
$gantry->addStyles(array('template.css','joomla.css'));
        
        if (
$gantry->browser->platform != 'iphone')
            
$gantry->addInlineScript('window.addEvent("domready", function(){ new SmoothScroll(); });');
            
        if (
$gantry->get('loadtransition') && isBrowserCapable()){
            
$gantry->addScript('load-transition.js');
            
$hidden ' class="rt-hidden"';
        } else {
            
$hidden '';
        }
        
    
?>

So I modified the code like this:

PHP Code:
    <?php 
        $gantry
->displayHead();
        
$gantry->addStyles(array('template.css?<?php echo time(); ?>','joomla.css'));
        
        if (
$gantry->browser->platform != 'iphone')
            
$gantry->addInlineScript('window.addEvent("domready", function(){ new SmoothScroll(); });');
            
        if (
$gantry->get('loadtransition') && isBrowserCapable()){
            
$gantry->addScript('load-transition.js');
            
$hidden ' class="rt-hidden"';
        } else {
            
$hidden '';
        }
        
    
?>

but the result is not rendered because in my page I see this:
Code:
  <link rel="stylesheet" href="/templates/rt_clarion/css/template.css?<?php echo time(); ?>" type="text/css" />

I suppose is because the php is not well modified and unfortunately I don't have php knowledge. I tried to play a bit with the code but without success.

Somebody can help please ?

many thank