cloudflare / templates

A collection of starter templates and examples for Cloudflare Workers and Pages
https://cloudflareworkers.com
MIT License
1k stars 638 forks source link

Bypass-all-cookies-except #46

Closed fabian-barney closed 1 year ago

fabian-barney commented 5 years ago

For some reasons I like to have the inverse logic from the current "bypass-on-cookie" feature. I do not want to define cookies which bypass but I like to define cookies which are ok for caching.

When a request contains a single cookie that is not on the cookie whitelist then it should bypass the cache. Caching is only allowed when all cookies are on the whitelist.

Main reasons:

lauragift21 commented 1 year ago

Closing this as the main repo has moved over to workers-sdk monorepo, located here: https://github.com/cloudflare/workers-sdk/tree/main/templates.

Feel free to reopen this issue in that repo if you're still experiencing this issue.