How to generate a HAR File

Description

You may need detailed information about network requests within your browser for troubleshooting. In such cases, a HAR file is helpful because it contains HTTP transaction history of the browser. This article describes how to generate the HAR file.

Environment

  • Chrome
  • Edge
  • Firefox
  • Safari

Resolution

Chrome
 1. Open DevTools (press F12 on your keyboard)
 2. Select Network tab
 3. Check “Preserve log”
 4. Check “Disable cache”
 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 Network tab
 3. Check “Preserve log”
 4. Check “Disable cache”
 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 Network tab
 3. Check Gear icon > “Persist logs”
 4. Check “Disable Cache”
 5. Reproduce the problem you want to investigate and confirm that Network tab displays detailed HTTP transactions.
 6. Select 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 Network tab
 3. Check “Preserve Log”
 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

On this page