You can use this document to learn how to view response headers.
Response headers display web behavior, which can help you troubleshoot CDN integrations.
While there are many ways to view response headers, this document will focus on:
- Browser development tools
- Bash consoles / command line tools
View headers with browser development tools
- In Google Chrome, navigate to a page to research.
- Within the page, right-click (for PC users) or command-click (Mac users) to view options, and then click Inspect.
- The Inspect feature will display the troubleshooting console, which will enable all of the available tools in a panel on the side of the window.
- Select the Network tab. You may need to refresh to view all of the requests made for the page.
- Select a request to view the corresponding response headers.
View headers with command line tools
With this option, you will only be able to see the response headers for one request. Additionally, this option will not display a friendly version of the website.
In a Mac or Linux terminal, use a curl command with the -I option to output only the response headers.
For Windows, use the Invoke-WebRequest command and the -Uri option.
Additionally, StackPath recommends that you select, then expand the header field to make troubleshooting the headers easier.