Ok, i've solved the css (and js) thing with this tutorials: http://milesj.me/blog/read/cakephp-asset-compression http://www.bunchacode.com/programming/get-cakephp-build-in-css-compression-to-work/
Now, how can i do that for images? I think just have to intercept the image GET request and add the headers, but there's a filter like Configure::write('Asset.filter.css', 'css.php'); ??? On Jul 13, 12:55 pm, Santiago Basulto <santiago.basu...@gmail.com> wrote: > Hello people. > > I need to set some HTTP headers "Expires", "Cache-Control", > "Last-Modified", for resources as CSS files, Images files, js files, > etc (Webroot content). > > I've read that there's some functionality, through > > Configure::write('Asset.timestamp', true); // In core.php > > 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's this: > > $url = $this->assetTimestamp($this->webroot($path)); > > I think i'm missing something. Could you help me? > > Thanks a lot! > > --SantiagoBasulto.- -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php