Return-Path: X-Original-To: apmail-httpd-bugs-archive@www.apache.org Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A652710A06 for ; Wed, 25 Sep 2013 21:45:52 +0000 (UTC) Received: (qmail 2225 invoked by uid 500); 25 Sep 2013 21:45:37 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 1987 invoked by uid 500); 25 Sep 2013 21:45:32 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 1798 invoked by uid 99); 25 Sep 2013 21:45:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Sep 2013 21:45:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Sep 2013 21:45:03 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 26FCE1BED1; Wed, 25 Sep 2013 21:44:42 +0000 (UTC) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: [Bug 55596] New: Add date format used by Expires header Date: Wed, 25 Sep 2013 21:44:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Apache httpd-2 X-Bugzilla-Component: mod_headers X-Bugzilla-Version: 2.2.25 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: plantin@cobaltgroup.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@httpd.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=55596 Bug ID: 55596 Summary: Add date format used by Expires header Product: Apache httpd-2 Version: 2.2.25 Hardware: PC OS: Linux Status: NEW Severity: enhancement Priority: P2 Component: mod_headers Assignee: bugs@httpd.apache.org Reporter: plantin@cobaltgroup.com It is practical to use mod_headers to insert Cache-Control headers in an http response. It would be equally practical to be able set the Expires header using mod_headers. While mod_expires can be used to set the Expires header, it's often not adequate for more elaborate use cases, such as conditional use based on the presence of environment variables. Using mod_headers to insert both of these headers is important to ensure consistent behavior. We propose that support be added for the date format used by the Expires header (RFC 1123) for access time + seconds. Bug 40899 had a similar enhancement, but without the possibility of adding seconds. The "u" format specifier is used, and a seconds argument can be specified to add seconds to the time string value. Header always set Expires {3600}u This adds an Expires header with the correct time format for access time plus , example: Expires: Wed, 25 Sep 2013 21:06:22 GMT This way, we can add cache control headers in a consistent manner: Header always set Cache-Control "max-age=3600" Header always set Expires %{3600}u -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org