joined:Jan 18, 2010
I've been reading up on this and I've been trying out a fair few different .htaccess solutions for my problem but to no avail.
My "problem" is that I want to compress html, css, php, xml, js and maybe images when people send a request to my server AKA visit my website.
Every "solution" I find, doesn't seem to work. As in, nothing get's compressed.
For instance I tried:
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
# Or, compress certain file types by extension:
But the results are the same, nothing is compressed. If I turn on gzip compression in Joomla the only thing that get's compressed is the basic HTML that's requested. CSS, etc.. isn't compressed.
There are several websites that you can use to "check" if you compress your content and they say my website is actually sending compressed files on request but Yslow or Page Speed tell a different story.
I'm using Joomla and I enabled gzip. It works on some files but on most it doesn't.
I looked into google's mod_pagespeed but that's to much Beta at the moment for my liking. Plus I'd need my host to work with me to get it installed and I can't "test" it before I install it. I'd like to test it and make sure my website doesn't break by installing a apache module.
I contacted my host about my compression problems, but they react in a fashion where this isn't a problem and fixing it should be common sense. I however lack the "common sense" to sort this out. So any help is greatly appreciated (: