From nobody@hyperreal.com Fri Jan 3 06:22:59 1997 Received: by taz.hyperreal.com (8.8.3/V2.0) id GAA12968; Fri, 3 Jan 1997 06:22:59 -0800 (PST) Message-Id: <199701031422.GAA12968@taz.hyperreal.com> Date: Fri, 3 Jan 1997 06:22:59 -0800 (PST) From: Markus Gyger Reply-To: mgyger@itr.ch To: apbugs@hyperreal.com Subject: Redirects caused by missing trailing / not cachable X-Send-Pr-Version: 3.2 >Number: 77 >Category: mod_dir >Synopsis: Redirects caused by missing trailing / not cachable >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Class: change-request >Submitter-Id: apache >Arrival-Date: Fri Jan 3 06:30:01 1997 >Last-Modified: Fri Feb 7 16:39:45 PST 1997 >Originator: mgyger@itr.ch >Organization: >Release: 1.2b4 >Environment: HP-UX 10.20, HP ANSI-C compiler 10.32.07 >Description: If someone omits the trailing slash for a directory index, apache send a temporary redirect command (status 302). However, these are not cachable by caching proxy servers. Replacing it by status 301 (permanent redirect) would make them cachable. >How-To-Repeat: $ telnet www.apache.org http GET /images HTTP/1.0 This responds with: HTTP/1.1 302 Moved Temporarily Location: http://www.apache.org/images/ [...] >Fix: --- o/apache_1.2b4/src/mod_dir.c Sun Dec 1 21:28:59 1996 +++ apache_1.2b4/src/mod_dir.c Fri Jan 3 15:02:58 1997 @@ -781,7 +781,7 @@ table_set (r->headers_out, "Location", construct_url(r->pool, ifile, r->server)); - return REDIRECT; + return MOVED; } /* KLUDGE --- make the sub_req lookups happen in the right directory. %0 >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Fri Feb 7 16:39:44 PST 1997 State-Changed-Why: Fixed in revision 1.21 of mod_dir.c, which will be available in the next beta. >Unformatted: