]> git.pld-linux.org Git - packages/apache-mod_gzip.git/blame - changes.txt
2e8e0e9f753e886f5ce93f4cfca91fc7 changes.txt
[packages/apache-mod_gzip.git] / changes.txt
CommitLineData
82a27944 1
2CHANGES in Version 1.3.19.1a
3
4* mod_gzip_can_negotiate Yes
5
6This new httpd.conf directive is probably the most
7important new feature.
8
9If 'mod_gzip_can_negotiate' command is set to 'Yes'
10then mod_gzip will essentially 'take over' some of
11the duties of mod_negotiate and will automatically
12check for static pre-existing compressed versions
13of requested file(s).
14
15In other words... if the user requests 'filename.html'
16and there happens to already be a pre-compressed
17version of that page named 'filename.html.gz' then
18mod_gzip will immediately return the pre-compressed
19version rather than perform a dynamic compression
20of the file.
21
22The delivery of the pre-compressed version of the file
23is still subject to the same 'rules' that govern the
24delivery of compressed data to a user-agent. The user-agent
25must have indicated it is capable of receiving compressed
26content and the file/mime type itself must be one of the
27valid mod_gzip 'inclusion' items specified using the
28normal mod_gzip_item_include/exclude statements.
29
30The 'mod_negotiate' module for Apache does not currently
31have the 'smarts' that mod_gzip does with regards to
32evaluating user-agents and inbound request headers and while it
33is (sometimes) able to 'negotiate' for static compressed versions
34of files it does not have anything comparable to the safety checks
35or the include/exclude item filtering logic that mod_gzip has.
36
37It is much 'safer' to set the 'mod_gzip_can_negotiate'
38flag to 'Yes' and let mod_gzip check for ( and deliver )
39static compressed versions of files than it is to let
40mod_negotiate make the same decisions.
41
42If mod_gzip finds a pre-compressed version of a requested
43file and all the filtering and safety checks allow that
44static compressed version to be delivered back to the
45client then the mod_gzip 'result' string in the access.log
46file will be...
47
48mod_gzip: DECLINED:STATIC_GZ_FOUND
49
50In this case... 'DECLINED' does not mean that no compressed
51data was returned. It means that mod_gzip has screened the
52request according to its filtering logic and has concluded
53that is is OK for Apache itself to flow the pre-compressed
54version back to the user-agent. 'DECLINED' means it was
55not 'dynamically' compressed and 'STATIC_GZ_FOUND' means
56a pre-compressed version was returned to the user-agent.
57
58In the cases where a user-agent has specifically requested
59a filename.html.gz file then the result string will be...
60
61mod_gzip: DECLINED:FEXT_GZ
62
63Which means that mod_gzip simply 'passed' on the transaction.
64
65
66* 'mod_gzip_command_version' directive has returned.
67
68The mod_gzip 'command' interface is back but now it
69has a different 'twist'. For security reasons you must
70now specify yourself what the 'command' is for certain
71functions like 'Get version'.
72
73This way... only you will know what the command is so
74you can test your own site(s). The command(s) can be
75different strings for each Virtual Host, if desired.
76
77To enable mod_gzip to do the 'version' command just
78add this to your httpd.conf file...
79
80mod_gzip_command_version mod_gzip_show_version
81
82The 'mod_gzip_show_version' string can be anything you
83like and this is the 'command' that you can now send
84to your server to have it respond with mod_gzip version
85information as an HTML response page.
86
87Example: Using the above command definition all you have
88to do to get the Server to provide the mod_gzip version
89information ( and whether or not mod_gzip is enabled
90for that location ) is type this into your browser...
91
92http://www.your_server_name.com/mod_gzip_show_version
93
94If you have added the 'mod_gzip_command_version' config
95parameter to 'your_server_name' httpd.conf file then
96you will not get a '404 File not found'... you will get this...
97
98mod_gzip is available on this Server...
99mod_gzip_version = 1.3.19.1a
100mod_gzip_on = Yes
101
102If mod_gzip is installed but is not 'on' for whatever
103location is requested ( based on Virtual Server name )
104then this will also be indicated with 'mod_gzip_on = No'
105in the response.
106
107This is a good way to tell 3 things...
108
1091. Is mod_gzip installed and functioning correctly.
1102. What version is it?
1113. Is mod_gzip turned 'on' for the requested 'location' (Server)?
112
113The command interface will check the entire URI for the
114command pickup string so, if you desire, you can do this
115as well...
116
117http://www.your_server_name.com/dummypage.html?mod_gzip_show_version
118
119The command string does not have to be part of the URI filename
120and can be included as a query parm following any filename.
121You will not receive the file... you will get the mod_gzip
122command result page instead.
123
124This might work better for some who want to add the 'command'
125link to existing pages since, if mod_gzip is not installed
126on 'your_server_name', Apache will still try to locate and
127return the page called 'dummypage.html' which might be better
128for some scenarios than a '404 Not found' response.
129
130
131* New 'uri' include/exclude record type added...
132
133The existing 'type' names for inclusion/exclusion should
134be adequate for just about anything but one or two
135scenarios involving complicated uses of 'ScriptAlias'
136have surfaced which could probably benefit from doing
137a keyword lookup on the URI itself and not the filename
138or mime type.
139
140To that end there is now a new 'type' name that can used...
141
142mod_gzip_item_include uri .*foo.*
143
144This will cause all requests for URIs with the characters 'foo'
145in it to be 'included'.
146
147NOTE: You can use either 'uri' or 'url' as the record type name.
148
149Using the 'file' pickup type is still the best ( and most accurate )
150thing to do so using the new 'uri' pickup is 'swim at your own risk'.
151It should work fine if used properly.
152
153
154* In-memory compression option is back on.
155
156The 'in-memory' compression option which was temporarily
157disabled in the prior version is now back on. The
158'mod_gzip_maximum_inmem_size xxxx' config parameter is
159what sets the maximum size of a source object ( in bytes )
160that can/will be compressed completely in memory.
161
162If the 'mod_gzip_maximum_inmem_size' value is either
163ZERO or not specified then the 'in-memory' compression
164option is effectively disabled and will not be used.
165
166Due to one remaining problem with some OS'es being unable
167to use allocations greater than 64k the maximum value
168is limited to 60,000 bytes ( allowing for some overspill ).
169
17060,000 bytes is perfectly adequate for most responses.
171Anything larger than that probably SHOULD use a workfile.
172
173Next version will allow any size to be used but be forewarned
174that testing has already shown that on a busy Server anything
175over 60k should probably not use the 'in-memory' option anyway
176since a busy Server needs all the memory it can get spread across
177hundreds of transactions per second to keep the performance up.
178
179
180* mod_gzip_item_include/exclude description updated.
181
182Used to report...
183ARG1=[mime,file,handler,agent]
184
185Now correctly reports...
186ARG1=[mime,file,uri,handler,reqheader,rspheader]
187
188
189END OF FILE
190
191
192
This page took 0.082171 seconds and 4 git commands to generate.