Forum Moderators: phranque
What do I need to do? I contacted my webhost and he said:
"This would be a programming issue and not server side. Maybe a search on Google will bring up some examples."
A search on google was useless, bringing up 404 errors all over the place.
Can anyone help?
Alex
I actually played with sending several pre-compressed files last night, but it did not work perfectly across all filetypes - I didn't have all the content-type and content-encoding headers set up quite right. I'm not even sure if my servers have mod-gzip installed -- I was just playing with downloading files I had already gzipped (on my PC) from my server. Maybe I'll learn some more over the few weeks.
Jim
The apache config includes various lines like
mod_gzip_item_include file \.html$. It's normal to compress html files, and the output of perl scripts (.pl), but usually images and stylesheets are not compressed.
In addition, .php files are not normally compressed with mod_gzip as php has (optional) compression built in.
So, ask the webhost specifically which extensions/file types are compressed, maybe they are only doing .html files and are yours are .htm, etc. Or maybe the webhost has simply failed to configure it right - ask for an example of a page elsewhere on the server that has the same extension as the host claims is compressed, if possible...