httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Sutton <p...@c2.net>
Subject Re: Compression via content negotiation
Date Wed, 02 Dec 1998 16:51:26 GMT
On Tue, 1 Dec 1998, Paul Ausbeck wrote:
> On Tue, 1 Dec 1998, Dean Gaudet Wrote:
> > Why is this a problem?  Didn't we just add the "default-handler" or
> > something?  Just name the file foo.html.def rather than foo.html, and add
> > a "AddHandler default .def" (check the code I may have this wrong).
> > There's no need to add more code.  This way you also get the advantage of
> > having some semblance of speed for those files for which there is zero
> > negotiation possible (i.e. foo.jpg, blah.zip, yeehaw.mp3, whatever).
> 
> I need a request for an ambiguous url, say "index", to negotiate between
> index.html and index.html.gz. That way I can publish a single url and
> use a single link on other pages and get a compressed file transferred
> if the client can handle it and uncompressed otherwise. I believe the
> AddHandler code would only come into play if an explicit request for
> index.html.gz was received. If I am wrong please let me know, as I am
> completely lost.

Yes. The issues is people who have index.html and index.html.gz. At the
moment a request for index.html will always select index.html, without
negotiating between index.html and index.html.gz.

Paul



Mime
View raw message