Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does "view source" in response headers go missing for certain sites

In developer tools in Chrome, sometimes the "view source" in response headers missing for certain sites? Any ideas why? Take yahoo.com site for example.

This site is just fine.

enter image description here

But yahoo is like this:

enter image description here

like image 444
Hao Avatar asked Nov 25 '16 07:11

Hao


People also ask

How can I see the response header of a website?

To view the request or response HTTP headers in Google Chrome, take the following steps : In Chrome, visit a URL, right click , select Inspect to open the developer tools. Select Network tab. Reload the page, select any HTTP request on the left panel, and the HTTP headers will be displayed on the right panel.

How do I show hidden elements in Chrome?

VIEW HIDDEN ELEMENTS: The extension makes visible those elements hidden by the "display:none", "type=hidden", and "visibility=hidden" attributes / styles. To do this hit LazySec's "Show Hidden Elements" button.

How does Chrome know the API calls in developer tools?

Step 1: Open the Chrome Developer ToolsGo to your Chrome Browser > Click on the Right Corner 3 Vertical Dots > More Tools > Developer Tools as shown in the below image.


1 Answers

That's because yahoo.com upgraded to using HTTP/2.

HTTP/2 is a binary protocol. How to display it? As HEX? Or just download the response? It won't make much sense to show the raw binary as text. Probably that's why Chrome removed the 'view source' option for HTTP/2 responses.

like image 65
Ivan Nikolchov Avatar answered Oct 11 '22 21:10

Ivan Nikolchov