caching - CakePHP cache control for asset files (images, CSS, etc) -
What is the best way to use CakePHP to eliminate headers for image and CSS files?
My host does not support mod_expires
or mod_headers
, so I use these values as a .htaccess
file Can not set in There is no cache control for my files right now and many unnecessary requests have been made.
What is the best way of pipe requests for asset files through the cake and set the appropriate headers through header ()
I like the best, not necessarily in cake-specific way, it is made in a code in / webroot
Which adds the header, then use the .htaccess
instructions for the pipe requests for ./css/ *
and . / Img / *
Through that file, I was just hoping that some kind of functionality created in cake can already be done :)
Comments
Post a Comment