kong-plugin-response-cache icon indicating copy to clipboard operation
kong-plugin-response-cache copied to clipboard

Feature/ignore upstream 5xx

Open OrthoDex opened this issue 5 years ago • 1 comments

Hey @wshirey 👋 ,

I tested out your plugin with a json body but it seems to be giving json encoding errors. This patch fixes those issues as well as does the following:

  • [x] Skip caching when upstream gives back a 5xx
  • [x] Assign priority to the plugin to execute after most plugins.

Let me know if any changes are needed.

OrthoDex avatar Apr 17 '19 14:04 OrthoDex

Thanks for the PR @OrthoDex. I left a few comments. Also, can you tell me what version of Kong you tested? I will try and test this evening.

@wshirey I used kong 0.11.2

OrthoDex avatar Apr 18 '19 06:04 OrthoDex