|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 (permalink) |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
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/ |
|
|
|
#3 (permalink) |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 (permalink) |
|
Messages: n/a
Hébergeur: |
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/ |
|
|
|
#5 (permalink) |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#6 (permalink) |
|
Messages: n/a
Hébergeur: |
On Sat, 5 Apr 2008, Neil Cherry wrote:
> So calling http://www.linuxha.com/ wouldn't get you the index.html.gz Options +Multiviews |
|
|
|
#7 (permalink) |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|