With an as: 'json' interceptor, Proxy attempts to JSON.parse the response body, regardless of response.statusCode. Ideally, this would be skipped and the interceptor callback would be called with some indication of the 304 status code and response.json as undefined. Even better, would be an interceptor filter on response.statusCode for response and response-sent phases. Just a thought!
With an
as: 'json'interceptor, Proxy attempts toJSON.parsethe response body, regardless ofresponse.statusCode. Ideally, this would be skipped and the interceptor callback would be called with some indication of the 304 status code andresponse.jsonasundefined. Even better, would be an interceptor filter onresponse.statusCodeforresponseandresponse-sentphases. Just a thought!