caddy-cache icon indicating copy to clipboard operation
caddy-cache copied to clipboard

Cache control to delete cached pages?

Open pwFoo opened this issue 8 years ago • 7 comments

Great module!!! Is a cache control planned to delete full cache or single cached pages? For example with a HTTP request or an admin api?

pwFoo avatar Oct 18 '16 18:10 pwFoo

Yes, I have updated readme.md with that feature. I think it could be a request with a DELETE method and some header. From what I've been reading caddy will add an admin api in version 1.0, so that's another alternative.

nicolasazrak avatar Oct 19 '16 00:10 nicolasazrak

Any update on this? Is this in progress already?

casdr avatar Apr 26 '17 09:04 casdr

@casdr I work on this project from time to time. I will probably look into this the next time

nicolasazrak avatar Apr 27 '17 15:04 nicolasazrak

Is cache control / delete pages from cache planned to add?

pwFoo avatar Jan 11 '19 15:01 pwFoo

@pwFoo same response as before. I only work in this project from time to time. PR are welcome, though. If you want to work on this, I would be glad to help you and merge it into this repo.

nicolasazrak avatar Jan 12 '19 22:01 nicolasazrak

Hi @nicolasazrak, thanks for feedback. I'm not a Go programmer, so I think I can't write a PR with needed code quality. But it's fine for now.

pwFoo avatar Jan 13 '19 07:01 pwFoo

This would be a killer feature. Especially, if it supports surrogate keys as described in some RFC and as available with Fastly: https://docs.fastly.com/en/guides/getting-started-with-surrogate-keys

lpellegr avatar Oct 09 '19 07:10 lpellegr