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 2006/06/10 17:51:21 UTC

DO NOT REPLY [Bug 39774] New: - mod_expires sets negative max-age / Expires header in the past

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39774>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39774

           Summary: mod_expires sets negative max-age / Expires header in
                    the past
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_expires
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: rpluem@apache.org


When using mod_expires ExpiresDefault or ExpiresByType with modifcation as base
it can happen that mod_expires adds a negative max-age to Cache-Control / an
Expires header with a date in the past. This possibly violates RFC2616.

How to reproduce:

Add

ExpiresDefault "modification plus 5 minutes"

to your config and access a static file via the webserver with a last
modification time of more then 5 minutes back from the request time.

Possible solutions:

1. mod_expires does not set an Expires header nor a max-age in this case
2. mod_expires sets Expires to the request time and max-age to 0 to indicate
that this response is not cachable.

Personally I think the second proposal is the correct solution.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 39774] - mod_expires sets negative max-age / Expires header in the past

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39774>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39774





------- Additional Comments From rpluem@apache.org  2006-06-10 17:48 -------
Created an attachment (id=18444)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18444&action=view)
Patch against trunk

Fixes the problem according to proposal 2: Setting max-age to 0 and Expires to
now.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 39774] - mod_expires sets negative max-age / Expires header in the past

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39774>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39774


serai@lans-tv.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |serai@lans-tv.com




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org