traefik / plugin-simplecache

Simple cache plugin middleware caches responses on disk
https://plugins.traefik.io/plugins/628c9ec2ffc0cd18356a97a2/log4-shell
Apache License 2.0
45 stars 11 forks source link

Doesn't work #18

Open AdriDevelopsThings opened 2 years ago

AdriDevelopsThings commented 2 years ago

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.

nismoau commented 1 year ago

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

iamolegga commented 4 months ago

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.