Search code examples
google-chromehttpgoogle-chrome-devtools

Chrome dev tools fails to show response even the content returned has header Content-Type:text/html; charset=UTF-8


Why does my Chrome developer tools show

Failed to show response data

in response when the content returned is of type text/html?

What is the alternative to see the returned response in developer tools?


Solution

  • I think this only happens when you have 'Preserve log' checked and you are trying to view the response data of a previous request after you have navigated away.

    For example, I viewed the Response to loading this Stack Overflow question. You can see it.

    Response Data

    The second time, I reloaded this page but didn't look at the Headers or Response. I navigated to a different website. Now when I look at the response, it shows 'Failed to load response data'.

    No Response Data

    This is a known issue, that's been around for a while, and debated a lot.