httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55596] New: Add date format used by Expires header
Date Wed, 25 Sep 2013 21:44:41 GMT
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


Mime
View raw message