title: How to cache static content (css, images,js files) in CakePHP2?
body: <p>I need to set some HTTP headers "Expires", "Cache-Control",
  "Last-Modified", for resources as CSS files, Images files, js files,
  etc (Webroot content).</p>
  
  <p>I've read that there's some functionality, through</p>
  
  <pre><code>   Configure::write('Asset.timestamp', true); // In core.php
  </code></pre>
  
  <p>and the assetTimestamp method of the Helper class.</p>
  
  <p>Now, the question is: How is it used?</p>
  
  <p>I read the HtmlHelper code and in the css method, line 361 there's this:</p>
  
  <pre><code>$url = $this-&gt;assetTimestamp($this-&gt;webroot($path));
  </code></pre>