plugin-simplecache icon indicating copy to clipboard operation
plugin-simplecache copied to clipboard

Doesn't work

Open AdriDevelopsThings opened this issue 3 years ago • 2 comments

Hey,

I installed the plugin, but when I make the request multiple types the header cache-status field is always: "miss":

traefik.yml

experimental:
  plugins:
    cache:
      modulename: "github.com/traefik/plugin-simplecache"
      version: "v0.2.1"

cache.yml

http:
  middlewares:
    regenbogen-ice-api-cache:
      plugin:
        cache:
          path: /cache/regenbogenice
          maxExpiry: 60

router image

and my requests: image

I hope you can help me.

AdriDevelopsThings avatar Nov 22 '21 18:11 AdriDevelopsThings

I can't get it to work either. Might be because Traefik Enterprise has a cache feature?

nismoau avatar Apr 19 '23 07:04 nismoau

The reason could be that the original response doesn't have any cache-related info for the underlying module https://github.com/pquerna/cachecontrol. In case anyone is still interested I've forked this plugin and added the hack for this.

iamolegga avatar Apr 23 '24 22:04 iamolegga