Hello All,
I am new to Apache server configurations
I am trying to get the static files(images, css, js) files through Apache,
we want to maintain the images and css files in the cache for a while,
in order to do that i have place the following configuration in httpd.conf file
i have google and place this code in httpd.conf file
and i dont have .htaccess filein my apache server.
LoadModule expires_module modules/mod_expires.so
<IfModule mod_expires.c>
<FilesMatch "\.(jpe?g|png|gif|js|css)$">
ExpiresActive On
ExpiresDefault "access plus 1 week"
</FilesMatch>
# 2days
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=172800, public"
</FilesMatch>
</IfModule>
is it the one i need to place or can some one give some suggestions how to maintain cache and
how to test the caching is working on browsers.
[edited by: phranque at 8:45 pm (utc) on Dec 4, 2013]
[edit reason] no specifics please [/edit]