Apache 1.1b* mod_proxy patch (Expires)

Apache 1.1b* mod_proxy patch (Expires)

Post by JP Freele » Wed, 19 Jun 1996 04:00:00



Over the last couple of days, Paul Callahan and myself have been
working with the Apache 1.1b4 src. We found a typo in mod_proxy.c
Expire vs Expires. Below is a the output of :

diff mod_proxy.c.new mod_proxy.c.orig

1810,1814c1782
<     expire = get_header(resp_hdrs, "Expires");
<     if (expire != NULL)
<       Explain1("cache_update:  Read Expire as %s from header",
expire->value);
<     else
<       Explain0("cache_update:  No expires found");
---

Quote:>     expire = get_header(resp_hdrs, "Expire");

Whoops :)

--
jpf

------------------------------------------------------------------
JP Freeley                                        40 Rector Street
Internet Services Developer                          New York, N.Y
Market Vision Inc.                                      10006-1705

212-306-0472                                             -74.0149W
------------------------------------------------------------------

A map of where I work....
http://www.mapquest.com/cgi-bin/mqpage?screen=wm_search&link=wm_view&...

 
 
 

1. Apache 1.1b* code change (304 Sends Expires) (unofficial)

We had wanted to push back the expire time. For example :

Assumes running mod_expires... with "access plus x units"

File has expired from cache (both netscape and mod_proxy) so
request is sent up to ProxyRoot or ProxyPass. Problem was
that if file had not been modified on Upstream serevr, expire
header was not sent so object stayed in mod_proxy cache expired. All
requests then were sent upstream and got 304 returned. We wanted to
update mod_proxy cache expire so that Head traffic would be minimized.

We changed the following in http_protocol.c:
Output of diff http_protocol.c.new http_protocol.c.orig:

63,64d62
< #include <stdarg.h>
<
73a72
75,76d73
< #include "explain.h"
< DEF_Explain
852d848
<     char *expires =table_get (r->headers_out, "Expires");
854,858d849
<     if (expires== NULL) {
<       Explain1("Return value from add_expires: %d", add_expires(r));
<       expires =  table_get (r->headers_out, "Expires");
<     }
<
874,877d864
<           if (expires != NULL)
<             bvputs(c->client, "Expires: ", expires, "\015\012", NULL);
<           else
<             bvputs(c->client, "Expires: ", "When hell freezes
over...", "\015\012
", NULL);
885,886d871
<
<

--
jpf

------------------------------------------------------------------
JP Freeley                                        40 Rector Street
Internet Services Developer                          New York, N.Y
Market Vision Inc.                                      10006-1705

212-306-0472                                             -74.0149W
------------------------------------------------------------------

A map of where I work....
http://www.mapquest.com/cgi-bin/mqpage?screen=wm_search&link=wm_view&...

2. Moving an application from a G40 to an F40

3. Apache 1.1b* patch http_main.c (unofficial)

4. Annoying Win2k/Sol dualboot problem

5. Patch: KeepAlive for Apache mod_proxy

6. Is possible Apache assumes .HTML extensions?

7. Patch: FTP Upload for Apache mod_proxy

8. "login" command kills xterm on RH 6.0

9. Apache group authentication in 1.1b[3,4]

10. Apache 1.1b[23] Action bug

11. Apache 1.1.1b for OS/2 Help Please

12. Configuring JRun 2.1b to work with Apache 1.2.4???

13. Merge expired license bug not fully fixed by patch