WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
7385
XMLHttpRequest 304 "not modified" status not returned in asynchronous mode
https://bugs.webkit.org/show_bug.cgi?id=7385
Summary
XMLHttpRequest 304 "not modified" status not returned in asynchronous mode
Sen Haerens
Reported
2006-02-20 06:46:17 PST
via
http://bugzilla.opendarwin.org/show_bug.cgi?id=3810#c8
When parsing static XML files and sending the correct if-modified-since header the server returns 304 but the XMLHttpRequest status returns undefined. In synchronous mode 304 is returned. Secondly setting a null value in the content method seems to make a difference. According to
http://developer.apple.com/internet/webcontent/xmlhttpreq.html
this value is optional. With null filled in there’s no traffic anymore between the browser and the server (tcpflow shows this clearly) and the status code varies from undefined to -1007. There must be some internal caching in this case.
Attachments
Add attachment
proposed patch, testcase, etc.
Sen Haerens
Comment 1
2006-02-20 07:12:27 PST
Testcase added.
Eric Seidel (no email)
Comment 2
2006-02-20 10:58:31 PST
Could this be a dup of
http://bugzilla.opendarwin.org/show_bug.cgi?id=3810
?
Alexey Proskuryakov
Comment 3
2006-02-20 11:19:00 PST
I think that I did a poor job of explaining my thoughts in
bug 3810 comment 8
:(. I'll file a new bug for that myself. The problem with setting a null value sounds new to me, I'll look into it.
Alexey Proskuryakov
Comment 4
2006-02-24 11:04:44 PST
I have filed the problem where NSURLConnection returns -1007 as <
rdar://4457674
>. This doesn't explain all the issues we see, though. I cannot notice any difference between send(), send(null), and send(""), could you please describe your results in more detail? Is this GET or POST (I assume the former)? Please also note that shipped Safari and ToT WebKit have different behavior - the latter would never return a negative status, replacing it with undefined.
Sen Haerens
Comment 5
2006-02-25 00:02:06 PST
(In reply to
comment #4
)
> I cannot notice any difference between send(), send(null), and send(""), could > you please describe your results in more detail? Is this GET or POST (I assume > the former)? Please also note that shipped Safari and ToT WebKit have different > behavior - the latter would never return a negative status, replacing it with > undefined.
I can't seem to reproduce it either for the moment. Safari used was the stock 2.0.3 (417.8). I will do some more testing next week.
Alexey Proskuryakov
Comment 6
2006-07-04 09:59:34 PDT
Still no steps to reproduce, closing as INVALID. Please note that the behavior of conditional XHR requests has been significantly changed as a result of
bug 8210
, which may fix the original concern here.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug