Gzip compression
Discussion
I found the following to deal with most file types :-
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>
But anything i find on the internet to add to the htaccess file for php pages doesn't seem to work?? Any ideas?
I have been using this page to test :-
http://www.gidnetwork.com/tools/gzip-test.php
TIA
- BEGIN GZIP
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>
- END GZIP
But anything i find on the internet to add to the htaccess file for php pages doesn't seem to work?? Any ideas?
I have been using this page to test :-
http://www.gidnetwork.com/tools/gzip-test.php
TIA

Tried this :-
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/xml application/x-javascript text/css text/php
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>
An HTML page works fine but a PHP page still says no compression.
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/xml application/x-javascript text/css text/php
- The BrowserMatch is to disable compression
- on browsers that don’t handle it properly.
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>
An HTML page works fine but a PHP page still says no compression.
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


