I need to set some HTTP headers "Expires", "Cache-Control", "Last-Modified" for resources in the form of CSS files, image files, js files, etc. (Webroot content).
I read that there are some functions through
Configure::write('Asset.timestamp', true);
and the assetTimestamp method of the Helper class.
Now the question is: how is it used?
I read the HtmlHelper code and in the css method, line 361 there:
$url = $this->assetTimestamp($this->webroot($path));
source
share