remove item from cache only if protocol error is in the response

issue #302