Previous Thread
Next Thread
Print Thread
Rate Thread
#173654 02/14/2002 6:07 PM
Joined: Aug 2000
Posts: 335
Member
Member
Offline
Joined: Aug 2000
Posts: 335
Based on the info here , I came up with this tentative set of directives for mod_gzip. Do they look reasonable? My objective is to compress as much output as possible, while maintaining compatibility with all client browsers and platforms.

[code][/code]

Sponsored Links
#173655 02/14/2002 6:59 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Looks fine....

Might want to add in content-types rather than extensions, so you'll get text/html from CGI and PHP scripts...


UBB.classic: Love it or hate it, it was mine.
#173656 02/14/2002 11:32 PM
Joined: Aug 2000
Posts: 335
Member
Member
Offline
Joined: Aug 2000
Posts: 335
Thanks. But doesn't [code][/code]do that?

#173657 02/15/2002 1:26 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
You don't want that - browsers choke over some compressed files, even though they say they won't. IE doesn't like compressed javascript.

text/html and text/plain should be the only ones used.


UBB.classic: Love it or hate it, it was mine.
#173658 02/15/2002 3:38 PM
Joined: Aug 2000
Posts: 335
Member
Member
Offline
Joined: Aug 2000
Posts: 335
Hmmmmm ....

Then what happens when an HTML page (either static or generated by a script) contains javascript? Wouldn't the content-type text/html result in the full page getting compressed, including the javascript?

Sponsored Links
#173659 02/15/2002 4:44 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Inline JS is mostly Ok. It's externally included files, i.e. script src.

Same goes with CSS.


UBB.classic: Love it or hate it, it was mine.
#173660 02/15/2002 7:55 PM
Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
Hey someone else is talking mod_gzip smile Been running this for some time now without any issues or problems. Here is my complete configuration as it is listed in my httpd.conf file.

LogFormat "%h %l %u %t %r %>s %b mod_gzip: %{mod_gzip_compression_ratio}npct$
LogFormat "%h %l %u %t %r %>s %b mod_gzip: %{mod_gzip_result}n In:%{mod_gzip$
CustomLog logs/gzip.log common_with_mod_gzip_info2

mod_gzip_on Yes
mod_gzip_temp_dir /tmp
mod_gzip_keep_workfiles No
mod_gzip_dechunk Yes
mod_gzip_minimum_file_size 1002
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 60000

mod_gzip_item_include file .htm$
mod_gzip_item_include file .txt$
mod_gzip_item_include mime text/.*
mod_gzip_item_include mime httpd/unix-directory
mod_gzip_item_exclude file .css
mod_gzip_item_exclude file .js

#173661 02/15/2002 8:32 PM
Joined: Aug 2000
Posts: 335
Member
Member
Offline
Joined: Aug 2000
Posts: 335
Thanks, Charles and 1QuickSI , that clarifies things. smile


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)