Fixes to shipping method AJAX

Adds failed request handling and cached request prevention to the AJAX
request.