From: brian
- $Revision: 1.118 $ ($Date: 1998/05/30 01:27:25 $)
+ $Revision: 1.119 $ ($Date: 1998/06/06 15:39:26 $)
The latest version of this FAQ is always available from the main
@@ -1091,19 +1091,15 @@
Apache does not send automatically send a cookie on every
response, unless you have re-compiled it with the
- mod_cookies
- module.
- This module was distributed with Apache prior to 1.2.
- This module may help track users, and uses cookies to do this. If
- you are not using the data generated by mod_cookies, do
- not compile it into Apache. Note that in 1.2 this module was renamed
- to the more correct name
- mod_usertrack,
- and cookies
- have to be specifically enabled with the
+ mod_usertrack
+ module, and specifically enabled it with the
CookieTracking
directive.
+ This module has been in Apache since version 1.2.
+ This module may help track users, and uses cookies to do this. If
+ you are not using the data generated by mod_usertrack, do
+ not compile it into Apache.
- In order to improve network performance, Apache buffers script output
- into relatively large chunks. If you have a script that sends
- information in bursts (eg. as partial-done messages in a multi-commit
- database transaction or any type of server push), the client will
- not necessarily get the output as the script is generating it.
-
- To avoid this, Apache recognizes scripts whose names begin with
- "nph-" as non-parsed-header scripts.
- That is, Apache won't buffer their output, but connect it directly to
- the socket going back to the client.
-
- While this will probably do what you want, there are some
- disadvantages to it:
-
- As an example how you might handle the former (in a Perl script):
-
- Apache Server Frequently Asked Questions
@@ -1245,59 +1241,16 @@
it? Why doesn't my server push work?
-
-
-
- if ($0 =~ m:^(.*/)*nph-[^/]*$:) {
-
-
-
- $HTTP_headers =
- "HTTP/1.1 200 OK\015\012";
-
-
- $HTTP_headers .=
- "Connection: close\015\012";
-
-
- print $HTTP_headers;
-
- }
- and then follow with your normal non-nph headers.
+ As of Apache 1.3, CGI scripts are essentially not buffered. Every time
+ your script does a "flush" to output data, that data gets relayed on to
+ the client. Some scripting languages, for example Perl, have their own
+ buffering for output - this can be disabled by setting the $!
+ special variable to 1. Of course this does increase the overall number
+ of packets being transmitted, which can result in a sense of slowness by
+ the end user.
Note that in version 1.3, all CGI scripts will be unbuffered - so the only difference between nph scripts and normal scripts is +
Prior to 1.3, you needed to use "nph-" scripts to accomplish non-buffering. + Today, the only difference between nph scripts and normal scripts is that nph scripts require the full HTTP headers to be sent.