Click here to get back home

Re: Questions on compressing web files

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Re: Questions on compressing web files David Dorward 04-05-2008
Posted by David Dorward on April 5, 2008, 1:06 pm
Please log in for more thread options
Neil Cherry wrote:

> I'm not sure if this is the correct place or not, I think it is. I
> checked with my hosting provider and mod_deflate (Apache hosting) is
> not available on my setup. I'd like to compress (ex: gzip index.html)
> some of the files for better load times. I should clean up the site
> and make the pages smaller but that's not going to happen any time
> soon. If I compress the file (except already compressed file such as
> .png, .jpeg, .gif and .zip files, for example) will I lock out any of
> the users of popular browsers?

How do you propose to compress them without mod_deflate?

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/

Posted by Joost Diepenmaat on April 5, 2008, 8:10 pm
Please log in for more thread options

>> How do you propose to compress them without mod_deflate?
>
> Actually part of the answer was easy but not the second part. I'd
> simply gzip index.html (resultant: index.html.gz) before hand but the
> Apache server won't serve up the file as it would with index.html. So
> calling http://www.linuxha.com/ wouldn't get you the index.html.gz
> file. I've currently abandoned this idea.

That's definitely possible with apache.

http://httpd.apache.org/docs/1.3/content-negotiation.html

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/

Posted by Chris Davies on April 11, 2008, 3:58 am
Please log in for more thread options
> Actually part of the answer was easy but not the second part. I'd
> simply gzip index.html (resultant: index.html.gz) beforehand [...]

You need to include index.html.gz in the DirectoryIndex list.

You may also need to enable content negotiation.

Finally, within your website, refer to files (e.g page.html, image.jpg)
in links without extensions (i.e. "page" or "image") and let Apache find
the appropriate ".html" ".html.gz", "jpg" suffix itself.

Chris

Similar ThreadsPosted
Compressing GET July 23, 2005, 4:01 pm
Problem with downloading Word doc files and rtf files through browser January 25, 2005, 5:33 pm
editing php files November 10, 2004, 4:00 am
audio files April 14, 2005, 2:11 am
short_open_tag to off for .xml files only? June 16, 2005, 4:46 am
IE and AVI files / code. February 24, 2006, 7:55 pm
IFRAME z-index bug with MHT files as src August 23, 2004, 6:51 am
Sycronize files with HTML January 24, 2005, 1:48 pm
how to upload files with only 1 button April 4, 2005, 6:32 am
CHM files do not show content. Why? July 11, 2005, 1:25 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap