CachingGuidancePlugin

显示开发代理在指定时间段内截获同一请求时出现警告。

命令提示符的屏幕截图,其中包含开发人员代理缓存指南插件,其中显示了有关发出过于频繁的请求的警告。

插件实例定义

{
  "name": "CachingGuidancePlugin",
  "enabled": true,
  "pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll",
  "configSection": "cachingGuidance"
}

配置示例

{
  "cachingGuidance": {
    "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/cachingguidanceplugin.schema.json",
    "cacheThresholdSeconds": 5
  }
}

配置属性

财产 描述 违约
cacheThresholdSeconds 触发指导警告的相同请求之间的秒数。 5

命令行选项

没有