You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2013/09/25 23:44:41 UTC

[Bug 55596] New: Add date format used by Expires header

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
<seconds>, 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


[Bug 55596] Add date format used by Expires header

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55596

--- Comment #1 from Philippe Lantin <pl...@cobaltgroup.com> ---
Created attachment 30883
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30883&action=edit
Patch against mod_headers 2.2.25

-- 
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


[Bug 55596] Add date format used by Expires header

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55596

--- Comment #2 from Philippe Lantin <pl...@cobaltgroup.com> ---
Created attachment 30884
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30884&action=edit
mod_headers.c module based on 2.2.25

-- 
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


[Bug 55596] Add date format used by Expires header

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55596

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable

-- 
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