en-US edge computer user

Set disk cache size, in bytes

Verified with Microsoft Edge 152.0.4191.53 — updated on July 10, 2026

Microsoft Edge 152.0.4191.53

Supported on: Microsoft Edge version 77, Windows 7 or later

Path in the GPO console

Computer Configuration\Administrative Templates\Microsoft Edge

Description

This policy configures the disk cache size in Microsoft Edge. If you enable this policy, Microsoft Edge uses the specified cache size, regardless of whether the user set the --disk-cache-size command-line flag. The value defined in this policy is treated as a suggestion to the caching system, not a strict limit. Values below a few megabytes are rounded up to a reasonable minimum. If you set the value to 0, the default cache size is used and users can't override it. It's recommended not to configure a custom value, as Microsoft Edge automatically manages the cache size for optimal performance. Setting a small value can degrade performance and increase network usage. If you don’t configure this policy, the default size is used, but users can override it with the --disk-cache-size flag. Note: The specified value is treated as a hint to multiple cache subsystems. The total disk usage of all caches can be larger than (but within the same order of magnitude as) the configured value.

Registry

HKLM Software\Policies\Microsoft\Edge
HKCU Software\Policies\Microsoft\Edge

More options available

Options

Set disk cache size:
DiskCacheSize decimal - range 0-2000000000

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

Scope

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Set disk cache size, in bytes
; State: Enabled
; Scope: Computer (HKLM)
; Supported on: Microsoft Edge version 77, Windows 7 or later

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge]
"DiskCacheSize"=dword:00000000
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Set disk cache size, in bytes
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: Microsoft Edge version 77, Windows 7 or later

$path = 'HKLM:\Software\Policies\Microsoft\Edge'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'DiskCacheSize' -Value 0 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview