Htttp.cache plugin usage

I found this plugin called http.cache which seems to be offering caching.

Now when I enabled caching in my Caddyfile, my site looks like a jumbled mess, I think I am missing something, can someone point out what? {
tls /etc/caddy/ssl/cert_chain.crt  /etc/caddy/ssl/
root /var/www/wordpress
fastcgi / /run/php/php7.0-fpm.sock php
rewrite {
if {path} not_match ^\/wp-admin
to {path} {path}/ /index.php?_url={uri}


Or cache isn’t supposed to work with WordPress?

I’d advise against using http.cache with WordPress, especially without careful configuration! It will definitely work, but its out-of-the-box behaviour could be disastrous.

To quote myself from an earlier thread on this topic:


Thank you for your reply.

What about extending http.cache to cache by a key, cookie or to exclude from cache by a key or cookie ?

Sure, that could be feasible. The repository for the cache plugin is here:

At the moment, it looks like it can already be configured to cache by header content. What you’re proposing doesn’t seem too complex.

1 Like

Yeah that would be good as it’s feature equivalent to nginx’s proxy_cache and fastcgi_cache supported options. Cloudflare also has for business and enterprise plan clients, bypass cache by cookie as well as cache by key, cookie or by device types

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.