Example: reverse proxy caching

I’m trying to configure Caddy to cache responses (in-memory) from a reverse-proxied backend for X seconds (e.g., 20 seconds). Could someone kindly:

  1. Recommend a well-maintained caching plugin that works with the latest version of Caddy?
  2. Provide a minimal example of a Caddyfile configuration to achieve this?

For example:

:80 {  
  route /some_route {
    reverse_proxy localhost:3000  
    # How to cache responses in memory (RAM) here (for x seconds)?  
}  

Any tips on cache invalidation or gotchas to avoid would also be appreciated!

Check this

Up!