-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Same cache, multiple addresses #115
Comments
Hey @neurosnap if you want to share the cache for two different domains, you can use the
Tell me if that's what you want. |
Re-posting my message from the PR:
I see that we are using |
Ahh yep I've found that the behavior I noticed where the two different site blocks do not share a cache may only be present in Otter. The behavior does not happen with the default Souin storage provider or Badger. {
debug
log {
level debug
}
cache {
ttl 300s
max_cacheable_body_bytes 1000000
badger
api {
souin
}
}
}
http://localhost:8080 {
respond "Hello from port 8080"
cache
}
http://localhost:8081 {
respond "Hello from port 8081"
cache
}
In the debug logs, I can see that including
When using Otter, those addresses are different:
|
Greetings! Thanks for the awesome http cache plugin for Caddy, it's overall working great!
We have a
Caddyfile
with multiple addresses and want them to share the same Otter cache and were wondering if that is possible with this project? If not, do you have any recommendations for an alternative storage system to handle this use case?Basically we host sites as subdomains on our root domain (e.g. https://erock-neovimcraft.pgs.sh) as well as allowing users to bring their own custom domains (e.g. https://neovimcraft.com) using
on_demand
tls. As a result, we want both sites to share the same cache which we have labeled with a surrogate-key (e.g. erock-neovimcraft).Let me know if you need more information, thanks again!
The text was updated successfully, but these errors were encountered: