Set application caches expiration time limit for individual domains
Définir le délai d’expiration des caches d’applications pour des domaines individuels
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.
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\AppCacheHKEY_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 99999Disable
# 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 SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Number of daysNombre de joursAppCache_GarbageCollectionThresholdInDaysPart | Numeric boxdecimal | GarbageCollectionThresholdInDays | REG_DWORD | Required · Min: 0 · Max: 99999 · Default (UI): 30 |