Use content negotiation to test for Ajax requests