CachingGuidancePlugin

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

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

插件实例定义

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

配置示例

{
  "cachingGuidance": {
    "cacheThresholdSeconds": 5
  }
}

配置属性

属性 说明 默认
cacheThresholdSeconds 触发指导警告的同一请求之间的秒数。 5

命令行选项