Set disk cache size, in bytes
Explanation
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
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\EdgeHKEY_CURRENT_USER\Software\Policies\Microsoft\Edge- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Computer (HKLM)
Enable
# Enable: msedge/DiskCacheSize
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Set disk cache size
Set-ItemProperty -Path $k -Name 'DiskCacheSize' -Value 0 -Type DWord # between 0 and 2000000000Disable
# Disable: msedge/DiskCacheSize
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": msedge/DiskCacheSize
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
Remove-ItemProperty -Path $k -Name 'DiskCacheSize' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Set disk cache size:DiskCacheSize | Numeric boxdecimal | DiskCacheSize | REG_DWORD | Min: 0 · Max: 2000000000 |
Application
Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.