httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18388] - Set-Cookie header not honored on 304 (Not modified) status
Date Fri, 25 Feb 2005 11:41:30 GMT
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=18388>.
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=18388





------- Additional Comments From Okin7@yahoo.fr  2005-02-25 12:41 -------
The http_protocol.c file has changed, so the patch should apply line 1657 rather
than line 1682.

This bug is more than one year old.
Just by correcting it, it could be possible to reduce bandwith usage on Apache 2
servers, by not resending all the page just to set a cookie.
Please take a second to apply the patch in the next 2.0.54 or so.
Thank you very very much !

Here is a small PHP script to test the bug :
on Apache 1.3.x, the printed line changes every second,
on Apache <=2.0.53, it won't change

==============
<?php
if (@$_SERVER['HTTP_IF_MODIFIED_SINCE']) header('HTTP/1.x 304 Not Modified');

header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Set-Cookie: test=' . time());

?>
<script>document.write(document.cookie);</script>
==============

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


Mime
View raw message