Otherwise, the browser may mix up HTML and JSON responses if it has requested both. For example, hitting the back button to return to a job metric page will show a JSON response, because that was the last thing the browser fetched for that URL.
This requires Catalyst::Action::Rest >= 1.20.
FVUOBKSKJKH5IWDISBLZLZUNFRRK2PB2X246WLPVU3BTYLQZ4CXAC