Loading

How to retrieve a HAR file for B2C Commerce troubleshooting

Udgivelsesdato: Jul 30, 2026
Beskrivelse

Real-World Example

A B2C Commerce merchant contacts Salesforce Support because their storefront checkout page takes 18–25 seconds to load for users in Europe, but loads normally when Support accesses it. Because the issue is environment-specific — occurring only in the customer's browser and network context — Support cannot reproduce it directly and requests a HAR file captured during an active occurrence of the slow checkout.
The merchant opens Chrome DevTools, navigates to the checkout page, captures the network activity during the slow load, and exports it as a HAR file. After sanitising the file to remove session cookies, they share it with Support via the case. Support identifies that a third-party analytics script is blocking page render for 14 seconds before timing out — a finding only visible in the customer's captured network waterfall.

Løsning

Before You Capture: Security and Sanitisation Requirements

HAR files may contain highly sensitive data including:

  • Live session cookies — which can be used to impersonate an active user session
  • Authentication tokens and OAuth credentials
  • Personal information submitted in forms during the capture
  • API keys or custom header values present in requests

You must sanitise your HAR file before sharing it with any third party, including Salesforce Support. https://help.salesforce.com/s/articleView?id=000385988&type=1
To sanitise your HAR file:

  • Use an automated tool such as the Cloudflare HAR Sanitizer to redact sensitive values automatically
  • Or open the HAR file in a text editor and manually redact cookie values, Authorization headers, and any personal data visible in request or response bodies
  • If you are investigating a non-authentication issue, log out of all active sessions before capturing to prevent live session tokens being recorded

Treat HAR files as Restricted data:

  • Do not upload unsanitised HAR files to any system outside Salesforce — this includes AI tools, public file sharing services, and third-party ticket systems
  • Limit access to appropriate personnel only and ensure secure transmission when sharing

 

Browser Instructions

Salesforce recommends capturing HAR files in Google Chrome or Mozilla Firefox for best results. https://help.salesforce.com/s/articleView?id=000385988&type=1
For the most reliable capture, navigate to the problem page before opening Developer Tools so you can reproduce the issue from a clean state.

Google Chrome

  1. Go to the page where you are experiencing the issue
  2. Open Developer Tools: click the ⋮ three-dot menu in the upper right → More Tools → Developer Tools — or press F12 (note: some organisations disable this shortcut)
  3. Click the Network tab in the Developer Tools panel
  4. Click Clear Network Log (the ⊘ circle icon) to remove any existing entries
  5. Reproduce the issue — click the link, button, or tab that triggers the problem and wait for the page to finish loading
  6. Right-click anywhere in the Network panel request list and select Save all as HAR with content
  7. Save the file — it will have a .har extension

Mozilla Firefox

  1. Go to the page where you are experiencing the issue
  2. Open Web Developer Tools: click the ☰ three-line menu in the upper right → More Tools → Web Developer Tools — or press F12
  3. Click the Network tab in the Developer Tools panel
  4. Reproduce the issue — click the link, button, or tab that triggers the problem and wait for the page to load
  5. Right-click anywhere in the network waterfall and select Save All as HAR
  6. Save the file — it will have a .har extension

Microsoft Edge

  1. Go to the page where you are experiencing the issue
  2. Open Developer Tools: click the ⋯ three-dot menu in the upper right → More Tools → Developer Tools — or press F12
  3. Click the Network tab in the Developer Tools panel
  4. Reproduce the issue — click the link, button, or tab that triggers the problem and wait for the page to load
  5. Click the disk icon (Export as HAR) in the Network panel toolbar to save the file
  6. Save the file — it will have a .har extension

Apple Safari

  1. Open Safari Settings: in the menu bar select Safari → Settings
  2. Click the Advanced tab and confirm there is a checkmark next to Show Develop menu in menu bar
  3. In the menu bar, select Develop → Web Inspector
  4. Click the Network tab in the Web Inspector panel
  5. Reproduce the issue — click the link, button, or tab that triggers the problem and wait for the page to load
  6. Right-click any request name in the left panel and select Export HAR
  7. Save the file — it will have a .har extension

 

Tips for a Useful HAR Capture

  • Capture during the active issue — for intermittent problems, wait until the issue is occurring before capturing. Clear the network log and try again if the issue does not appear on the first attempt
  • File size check — if your saved HAR file is smaller than 1 MB, it likely did not capture the full request sequence and will not be useful for diagnosis. Clear the log and capture again https://help.salesforce.com/s/articleView?id=000385988&type=1
  • File extension — most browsers save the file with a .har extension automatically. If yours does not, rename the file to append .har before sharing
  • Large files — HAR files are typically large. If the file cannot be attached to your support case due to size limits, notify your Salesforce Support engineer to arrange an alternative upload method
  • Provide context — share the exact steps or click path you followed to reproduce the problem alongside the HAR file, so Support can map the captured requests to the right user action

 

Submitting the HAR File to Salesforce Support

After sanitising your HAR file:

  1. Attach the file directly to your open Salesforce Support case via the case portal
  2. Add a comment to the case with the exact steps you took to reproduce the issue during the capture
  3. Note the browser, browser version, and operating system used for the capture

If the file is too large to attach to the case, reply to the case and ask your Support engineer for an alternative upload link.

Yderligere ressourcer
  • Create HAR Files in Supported Browsers for Advanced Troubleshooting — The full Salesforce HAR capture guide including security requirements, sanitisation steps, and video walkthrough for Chrome https://help.salesforce.com/s/articleView?id=000385988&type=1
  • How to Retrieve Console Logs from Chrome Developer Tools — Companion article for capturing browser console logs when HAR files alone cannot explain UI behaviour issues
  • Cloudflare HAR Sanitizer — Free tool for automatically redacting sensitive values from HAR files before sharing
Vidensartikelnummer

000391709

 
Indlæser
Salesforce Help | Article