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

Cache example doesn't cache when deployed to Cloudflare #95

Closed
TheMightyGit opened this issue Feb 12, 2024 · 2 comments
Closed

Cache example doesn't cache when deployed to Cloudflare #95

TheMightyGit opened this issue Feb 12, 2024 · 2 comments

Comments

@TheMightyGit
Copy link

TheMightyGit commented Feb 12, 2024

If I repeatedly curl the cache example (_examples/cache) I get a different response each time, no caching happens.

This only happens when deployed to cloudflare. When run in wrangler local dev it caches fine.

@syumai
Copy link
Owner

syumai commented Feb 13, 2024

@TheMightyGit
Are you using the *.workers.dev subdomain?
It is not attached to your domain and therefore does not affect the cache.
If you are using your own domain, I would look into this issue further.

@TheMightyGit
Copy link
Author

@TheMightyGit Are you using the *.workers.dev subdomain? It is not attached to your domain and therefore does not affect the cache. If you are using your own domain, I would look into this issue further.

Ah! Yes, I am using the *.workers.dev. Thank you for the answer :)

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

2 participants