ASF Bugzilla – Attachment 20556 Details for
Bug 42987
Weak Etags in Apache are useless and violate RFC 2616, 13.3.3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
conditional GET with apache-style weak etag
etag1 (text/plain), 1.39 KB, created by
Werner
on 2007-07-27 05:26:36 UTC
(
hide
)
Description:
conditional GET with apache-style weak etag
Filename:
MIME Type:
Creator:
Werner
Created:
2007-07-27 05:26:36 UTC
Size:
1.39 KB
patch
obsolete
>Note: The contents of file "getifmodified" is never changed. > >Test 1: >------- >PUT /litmus/getifmodified HTTP/1.1 > >[body] > >HTTP/1.1 201 Created >Date: Fri, 27 Jul 2007 10:33:21 GMT > >GET /litmus/getifmodified HTTP/1.1 > >HTTP/1.1 200 OK >Date: Fri, 27 Jul 2007 10:33:21 GMT >Last-Modified: Fri, 27 Jul 2007 10:33:21 GMT >ETag: W/"19e60b-20-45a19e40" > >[body] > >GET /litmus/getifmodified HTTP/1.1 >If-None-Match: W/"19e60b-20-45a19e40" > >HTTP/1.1 200 OK >Date: Fri, 27 Jul 2007 10:33:21 GMT >Last-Modified: Fri, 27 Jul 2007 10:33:21 GMT >ETag: W/"19e60b-20-45a19e40" > >[body] > >Notes: >All timestamps are equal. >The first GET returns a weak etag. >In the second GET this weak etag does *not* match, but the same weak >etag is returned again, together withthe unchanged body. > > >Test 2: >------- >PUT /litmus/getifmodified HTTP/1.1 > >[body] > >HTTP/1.1 201 Created >Date: Fri, 27 Jul 2007 11:47:00 GMT > >GET /litmus/getifmodified HTTP/1.1 > >HTTP/1.1 200 OK >Date: Fri, 27 Jul 2007 11:47:00 GMT >Last-Modified: Fri, 27 Jul 2007 11:47:00 GMT >ETag: W/"19e60b-20-4d063500" > >[body] > ># Wait 2 seconds > >GET /litmus/getifmodified HTTP/1.1 >If-None-Match: W/"19e60b-20-4d063500" > >HTTP/1.1 200 OK >Date: Fri, 27 Jul 2007 11:47:02 GMT >Last-Modified: Fri, 27 Jul 2007 11:47:00 GMT >ETag: "19e60b-20-4d063500" > >[body] > >Notes: >Compared to test 1, after waiting 2 seconds a strong etag is returned, >with the same value as the weak etag.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 42987
: 20556