Skip to content

Electron fetch in the utility process doesn't respect HTTP cache headers #307216

Open

Description

@lramos15

Steps to Reproduce:

  1. Start VS Code capturing network logs
  2. Use copilot chat for 12 minutes to cause 2 model list fetches to happen
  3. Quit VS Code
  4. Analyze net log
  5. 🐛 Disk cache isn't used despite applicable HTTP cache headers.

Activity

  1. added this to the Backlog milestone on Apr 1, 2026
  2. added
    bug
    upstream
    electron
    network
    on Apr 1, 2026
  3. deepak1556 commented on Apr 1, 2026

    @deepak1556
    Collaborator

    Great catch!

    URLLoader in the utility process uses system network context which disables disk cache https://github.com/electron/electron/blob/e7080835f14958546a11e0b1aa3dc82f1d2d41af/shell/browser/net/system_network_context_manager.cc#L301 , I missed this originally when implementing the net api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugelectronnetworkupstream

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions