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 46306] If-Modified-Since: and If-None-Match: incorrect result
Date Mon, 21 Mar 2011 16:22:16 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46306

Malte S. Stretz <mss@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Malte S. Stretz <mss@apache.org> 2011-03-21 12:22:13 EDT ---
This is fixed both in v2.3 and v2.2:

$ for s in www.apache.org msquadrat.de; do
  url=http://$s/robots.txt
  lwp-request -USed -m GET \
    -H "If-Modified-Since: Sat, 08 Nov 2000 00:00:00 GMT" \
    -H "If-None-Match: $(lwp-request -m HEAD "$url" | \
      sed -ne '/^ETag:/{s/^[^:]*: //;p}')" \
    "$url"
done
HEAD http://www.apache.org/robots.txt
If-Modified-Since: Sat, 08 Nov 2000 00:00:00 GMT
If-None-Match: "d20a95-2f-494031bea5f40"
User-Agent: lwp-request/5.834 libwww-perl/5.836

HEAD http://www.apache.org/robots.txt --> 200 OK
Cache-Control: max-age=3600
Connection: close
Date: Mon, 21 Mar 2011 16:18:06 GMT
Accept-Ranges: bytes
ETag: "d20a95-2f-494031bea5f40"
Server: Apache/2.3.8 (Unix) mod_ssl/2.3.8 OpenSSL/1.0.0c
Vary: Accept-Encoding
Content-Length: 47
Content-Type: text/plain
Expires: Mon, 21 Mar 2011 17:18:06 GMT
Last-Modified: Mon, 01 Nov 2010 19:49:41 GMT

HEAD http://msquadrat.de/robots.txt
If-Modified-Since: Sat, 08 Nov 2000 00:00:00 GMT
If-None-Match: "d9-3e26dc70d9240"
User-Agent: lwp-request/5.834 libwww-perl/5.836

HEAD http://msquadrat.de/robots.txt --> 200 OK
Connection: close
Date: Mon, 21 Mar 2011 16:18:10 GMT
Accept-Ranges: bytes
ETag: "d9-3e26dc70d9240"
Server: Apache/2.2.12 (Ubuntu)
Vary: Accept-Encoding
Content-Length: 217
Content-Type: text/plain
Last-Modified: Tue, 24 Aug 2004 22:20:49 GMT


Apache HTTP Server 1.3.x is not supported anymore and no bugs will be fixed in
the old codebase (cf.
<http://mail-archives.apache.org/mod_mbox/httpd-announce/201002.mbox/%3C20100203000334.GA19021@infiltrator.stdlib.net%3E>).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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