How to generate a HAR file

If you need detailed information about network requests within your browser for troubleshooting, generating a HAR file would be helpful. This article helps you know the steps on how to generate a HAR file.

Description description

Environment
Adobe Experience Manager

Issue
You may need detailed information about network requests within your browser for troubleshooting.

A HAR file is helpful because it contains HTTP transaction history of the browser. This article describes how to generate the HAR file.

Web Browser Environments

  • Chrome
  • Edge
  • Firefox
  • Safari

Resolution resolution

Solution

Chrome
 1. Open DevTools (press F12 on your keyboard).
 2. Select the  Network tab.
 3. Check the Preserve log checkbox.
 4. Check the Disable cache  checkbox.
 5. Reproduce the problem you want to investigate and confirm that Network tab displays detailed HTTP transactions.
 6. Select Export HAR.
 7. Specify a file name and save it.

Edge
 1. Open DevTools (press F12 on your keyboard).
 2. Select the Network tab.
 3. Check the Preserve log  checkbox.
 4. Check the Disable cache  checkbox.
 5. Reproduce the problem you want to investigate and confirm that Network tab displays detailed HTTP transactions.
 6. Select Export HAR.
 7. Specify a file name and save it.

Firefox
 1. Open DevTools (press F12 on your keyboard).
 2. Select the Network tab.
 3. Check the Gear icon > Persist logs checkbox.
 4. Check the Disable Cache checkbox.
 5. Reproduce the problem you want to investigate and confirm that Network tab displays detailed HTTP transactions.
 6. Select the Gear icon > Save All As HAR.
 7. Specify a file name and save it.

Safari
 1. Open DevTools (press F12 on your keyboard).
 2. Select the Network tab.
 3. Check the Preserve Log checkbox.
 4. Press Use the resource cache when loading resources  and change to Ignore the resource cache when loading resources.
 5. Reproduce the problem you want to investigate and confirm that Network tab displays detailed HTTP transactions.
 6. Select Export.
 7. Specify a file name and save it.

Since Chrome 130, default HAR files no longer contain Cookie and Authorization headers. Sometimes troubleshooting requires these headers. In this case, go to Settings of Dev Tools, check “Allow to generate HAR with sensitive data” as the first step. After reproducing the problem, long-click the Export button and select “Export HAR (with sensitive data)” from the drop-down menu. The same applies to Edge.

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f