Some questions on the absolute, optimal usage of caching of dynamic and static cache.
Currently, my htaccess
is setup as below, and I have the feeling im not really using it the correct way... Any of your improvement-suggestions I see as answers! Much appreciated!
Question1: any suggestions as to what I should change, in order to make caching more correct within the two levels ( #### dynamic / #### static)
Question 2: what does these IF tags do: <IfModule mod_headers.c> ... </IfModule>
Is it advisable to keep or not? Without it seems to also work. Are there speed advantages using this?
Question 3: Should I use both ExpiresDefault M7200
and Header set Cache-Control "max-age=7200"
or will either one do?
<IfModule mod_headers.c>
ExpiresActive On
Header unset ETag
FileETag None
Header unset Pragma
ExpiresDefault M14515200
##### DYNAMIC PAGES
<FilesMatch "\\.(htm|php)$">
ExpiresDefault M7200
Header set Cache-Control "max-age=7200"
</FilesMatch>
##### STATIC FILES
<FilesMatch "\\.(ico|jpg|png|gif|svg|swf|css|js|fon|ttf|eot|xml|pdf|flv)$">
ExpiresDefault M14515200
Header set Cache-Control "max-age=14515200"
</FilesMatch>
</IfModule>