Received: (qmail 71214 invoked by uid 501); 25 Jan 2002 23:24:21 -0000 Message-Id: <20020125232421.71213.qmail@apache.org> Date: 25 Jan 2002 23:24:21 -0000 From: Steven Devijver Reply-To: apache@devijver.be To: submit@bugz.apache.org Subject: Response with "expires" header in RFC822 date format with zone + | - 4DIGIT format does not expire X-Send-Pr-Version: 3.110 >Number: 9598 >Category: mod_proxy >Synopsis: Response with "expires" header in RFC822 date format with zone + | - 4DIGIT format does not expire >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri Jan 25 15:30:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: apache@devijver.be >Release: 1.3.23 >Organization: apache >Environment: Linux 2.2.19 (no patches), gcc 2.95.2 (no patches) >Description: When a response is cached by mod_proxy with the "expires" and "last-modified" headers is RFC822 date format with the zone field in the format ("+" / "-") 4DIGIT (e.g. "+0100") the cache response does not expire as expected. It does expire when the zone field is set to "GMT". >How-To-Repeat: Create a response with the "expires" and "last-modified" header in RFC822 date format with the zone field in the format ("+" / "-") 4DIGIT. E.g.: Last-Modified: Sat, 26 Jan 2002 01:06:20 +0100 Expires: Sat, 26 Jan 2002 01:11:20 +0100 This respone will generate a HIT even when the timestamp of "expires" has passed. If you use GMT as your time zone the response will expire as expected. E.g.: Last-Modified: Sat, 26 Jan 2002 00:06:20 GMT Expires: Sat, 26 Jan 2002 00:11:20 GMT >Fix: Accept RFC822 compatible dates for these crucial mod_proxy header response fields as the RFC822 date format is commonly used by http servers and clients. >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]