Skip to content
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

Surrogate Provider testing for Cloudflare #611

Open
joeblew999 opened this issue Mar 23, 2025 · 0 comments
Open

Surrogate Provider testing for Cloudflare #611

joeblew999 opened this issue Mar 23, 2025 · 0 comments

Comments

@joeblew999
Copy link

joeblew999 commented Mar 23, 2025

Hey

This is such a great project .

Really great to see Cloudflare as a surrogate provider , since I plan to start using CF to take the load off my Origin servers that run caddy .

I was looking at :
https://github.com/darkweak/souin/tree/master/pkg/surrogate/providers

At the moment it seems handle cache purging, like described here:

https://developers.cloudflare.com/cache/how-to/purge-cache/

https://blog.cloudflare.com/instant-purge/

Apparently they made their enterprise cache purging available to all plans, and expect to begin offering additional purge capabilities to all plan types in early 2025.

--.

Does this help me to set cache headers for Cloudflare ?

"cf-cache-status " is the main header I think that controls caching for CF .

I noticed that the tests are commented out so I am wondering if there is a reason ?

First thing I can think of is that to test this we need a tofu / terraform that sets Cloudflare , so that test can work ?

https://github.com/cloudflare/terraform-provider-cloudflare

Then I was thinking a Domain and web page is needed to help us easily see the results from the browsers side too to help with debugging .

Please let me know your thoughts .

I also use golang to run workers as WASM on Cloudflare workers , which also can leverage caching of course too .

https://github.com/syumai/workers

So there maybe some relationship to this for testing too .

@joeblew999 joeblew999 changed the title Provider testing Provider testing for Cloudflare Mar 23, 2025
@joeblew999 joeblew999 changed the title Provider testing for Cloudflare Surrogate Provider testing for Cloudflare Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant