PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.info.authoring.html > Questions on compressing web files
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Questions on compressing web files

Réponse
 
LinkBack Outils de la discussion
Vieux 03/04/2008, 23h53   #1 (permalink)
Neil Cherry
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Questions on compressing web files

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?

--
Linux Home Automation Neil Cherry ncherry@linuxha.com
http://www.linuxha.com/ Main site
http://linuxha.blogspot.com/ My HA Blog
Author of: Linux Smart Homes For Dummies
  Réponse avec citation
Vieux 05/04/2008, 18h06   #2 (permalink)
David Dorward
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Questions on compressing web files

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/
  Réponse avec citation
Vieux 06/04/2008, 01h03   #3 (permalink)
Neil Cherry
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Questions on compressing web files

On Sat, 05 Apr 2008 18:06:41 +0100, David Dorward wrote:
> 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?


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.

--
Linux Home Automation Neil Cherry ncherry@linuxha.com
http://www.linuxha.com/ Main site
http://linuxha.blogspot.com/ My HA Blog
Author of: Linux Smart Homes For Dummies
  Réponse avec citation
Vieux 06/04/2008, 01h10   #4 (permalink)
Joost Diepenmaat
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Questions on compressing web files

Neil Cherry <njc@.uucp> writes:

>> 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/con...gotiation.html

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
  Réponse avec citation
Vieux 06/04/2008, 02h14   #5 (permalink)
Neil Cherry
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Questions on compressing web files

On Sun, 06 Apr 2008 02:10:19 +0200, Joost Diepenmaat wrote:
> Neil Cherry <njc@.uucp> writes:
>
>>> 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/con...gotiation.html
>


I'll check into that, thanks!

For those running on Apache 2.0:

http://httpd.apache.org/docs/2.0/con...gotiation.html

I like that about Apache, if you find 1.3 documentation you usually
can change the 1.3 to 2.0 and find the correct documentation for
that Apache. :-)

--
Linux Home Automation Neil Cherry ncherry@linuxha.com
http://www.linuxha.com/ Main site
http://linuxha.blogspot.com/ My HA Blog
Author of: Linux Smart Homes For Dummies
  Réponse avec citation
Vieux 07/04/2008, 15h26   #6 (permalink)
Andreas Prilop
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Questions on compressing web files

On Sat, 5 Apr 2008, Neil Cherry wrote:

> So calling http://www.linuxha.com/ wouldn't get you the index.html.gz


Options +Multiviews
  Réponse avec citation
Vieux 11/04/2008, 08h58   #7 (permalink)
Chris Davies
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Questions on compressing web files

Neil Cherry <njc@.uucp> wrote:
> 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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h06.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11254 seconds with 15 queries