Bug Tracker

Opened 7 years ago

Closed 7 years ago

#12571 closed bug (notabug)

jQuery XHR Object reports wrong status code

Reported by: odo@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:

Description

When I am loading data via $.ajax and inspect the jqXHR via the 'complete' callback, it reports the right status code.

When I reload the page with document.location = window.location.href and do the Ajax-request again, it always comes across as a 200, although I can see in the debugging proxy, that it says HTTP/1.1 304 Not Modified .

Am I doing something wrong here or is this intended behavior? Is there a way to access the raw response?

Thanks, odo

Change History (1)

comment:1 Changed 7 years ago by mikesherov

Resolution: notabug
Status: newclosed

Thanks for the report! Please ask for help on the forum: http://forum.jquery.com/

If you're still believe you've found a bug after that, please open a new ticket, follow the bug reporting guidlines and use http://jsFiddle.net when providing test cases and demonstrations instead of pasting the code in the ticket.

Thanks!

Note: See TracTickets for help on using tickets.