How to set cache expiration date for entire image folder using .htaccess?
Right now, I want only the contents of one particular folder to get the cache expiration date. I am currently using the following code (inserted below), but I find it a pain because every time I add a new work of art, I have to add it to this list. Is there a way that I can just specify the entire folder?
<FilesMatch" (\.css|main_banner.jpg|cart.png|main_logo.jpg|favicon.ico|search_button.jpg|fp_banner.jpg)$"> Header set Cache-Control "max-age=2592000" </FilesMatch>
caching .htaccess
justinl Nov 24 '09 at 9:07 2009-11-24 09:07
source share