<Files *.*> SetOutputFilter DEFLATE </files> IS THAT CORRECT?
tarr74
4:44 pm on Mar 17, 2011 (gmt 0)
Hi, is it correct to put this in the .htaccess?
<Files *.*>
SetOutputFilter DEFLATE
</Files>
All the online guides tell to do something like
<Files *.html> SetOutputFilter DEFLATE </Files>
and then
<Files *.php> SetOutputFilter DEFLATE </Files>
and so on for every extesnion.
Is the
<Files *.*>
solution correct?
jdMorgan
1:32 am on Mar 18, 2011 (gmt 0)
There's no good reason to waste CPU time trying to compress filetypes such as .jpg, .jpeg, and .png, since these are likely the most-often-requested files AND they are already in compressed format.
So, no <Files *.*> is not a good solution to the real problem.
I would suggest using <FilesMatch "\.(html?|php|css|js)$"> as a start, to compress only filetypes that can actually be made smaller by the compression...