Edit

Share via


CachingGuidancePlugin

Shows a warning when Dev Proxy intercepted the same request within the specified period of time.

Screenshot of a command prompt with the Dev Proxy caching guidance plugin showing a warning about a request that's been issued too frequently.

Configuration example

{
  "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/rc.schema.json",
  "plugins": [
    {
      "name": "CachingGuidancePlugin",
      "enabled": true,
      "pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
      "configSection": "cachingGuidance"
    }
  ],
  "cachingGuidance": {
    "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/cachingguidanceplugin.schema.json",
    "cacheThresholdSeconds": 5
  }
}

Configuration properties

Property Description Default
cacheThresholdSeconds The number of seconds between the same request that triggers the guidance warning. 5

Command line options

None