Compression in 7.0.2

Does anyone add compression to .htaccess ?

I tried to add AddOutputFilterByType DEFLATE text/html text/plain text/xml to my file and got an error.

Looks like there is a lot of JS and other files that could save time when loading after compression

Thanks,

Quote · 26 Aug 2010

Add the following to the end of your .htaccess file.

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html

<IfModule mod_deflate.c>
<FilesMatch ".(js|css)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>



But this will not work and may likely generate an error if apache does not have mod_deflate enabled. Not likley to work on many shared hosts.

https://www.deanbassett.com
Quote · 26 Aug 2010

Thanks!

I'll try it

Quote · 26 Aug 2010

Thanks Deano.  I just added it and will see if it speeds things along any.

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 26 Aug 2010

Agreed Deano!

On one of my host it  has worked just fine! ,Now on a new site that I am working on, its on a shared server, and the code throws an error.

So I'll wait till I upgrade and then apply it again!

Back to pulling my hair out! (ouch, ouch,ouch)
Quote · 26 Aug 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.