Open in the explorer

Set application caches expiration time limit for individual domains

Définir le délai d’expiration des caches d’applications pour des domaines individuels

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Internet Control Panel › General Page › Browsing History User Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Internet Control Panel › General Page › Browsing History FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Panneau de configuration Internet › Onglet Général › Historique de navigationFR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Panneau de configuration Internet › Onglet Général › Historique de navigation
Supported on
At least Internet Explorer 10.0 FR: Au moins Internet Explorer 10.0
ADMX file
inetres.admx
Internal name
inetres/AppCache_GarbageCollectionThresholdInDays

Explanation

This policy setting sets the number of days an inactive application cache will exist before it is removed. If the application cache is used before the expiration time limit, it will not be automatically removed. When you set this policy setting, you provide the expiration time limit in days.

If you enable this policy setting, Internet Explorer will remove application caches that haven't been used within the timeframe set in this policy setting.

If you disable or do not configure this policy setting, Internet Explorer will use the default application cache expiration time limit for all application caches. The default is 30 days.

French text from Windows 11 26H2

Ce paramètre de stratégie définit le nombre de jours pendant lesquels un cache d’application inactif peut exister avant d’être retiré. Si le cache d’application est utilisé avant le délai d’expiration, il n’est pas automatiquement supprimé. Lorsque vous définissez ce paramètre de stratégie, vous indiquez le délai d’expiration en jours.

Si vous activez ce paramètre de stratégie, Internet Explorer supprime les caches d’applications qui n’ont pas été utilisés dans les délais définis par ce paramètre de stratégie.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, Internet Explorer utilise le délai d’expiration des caches d’applications par défaut pour tous les caches d’applications. La valeur par défaut est de 30 jours.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\BrowserStorage\AppCache
HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\BrowserStorage\AppCache
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: inetres/AppCache_GarbageCollectionThresholdInDays
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\BrowserStorage\AppCache'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Number of days
Set-ItemProperty -Path $k -Name 'GarbageCollectionThresholdInDays' -Value 30 -Type DWord  # between 0 and 99999

Disable

# Disable: inetres/AppCache_GarbageCollectionThresholdInDays
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": inetres/AppCache_GarbageCollectionThresholdInDays
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\BrowserStorage\AppCache'
Remove-ItemProperty -Path $k -Name 'GarbageCollectionThresholdInDays' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Number of daysNombre de joursAppCache_GarbageCollectionThresholdInDaysPartNumeric boxdecimalGarbageCollectionThresholdInDaysREG_DWORD
Required · Min: 0 · Max: 99999 · Default (UI): 30

Availability