Creating cache key in Worker

I want to use worker Custom Cache Key to cache URL like below
.www…com/…sconce/?wmc-currency=AUD&gclid=EAIaIQobCh
or
www…com/…sconce/?wmc-currency=AUD
Because these urls of mine keep getting bypassed

But I don’t know how to write the code, hope to get functional code like you guys. Thanks a lot

You’re on an Enterprise plan?

If so, here’s some example code:

https://developers.cloudflare.com/workers/examples/cache-using-fetch/#custom-cache-keys

1 Like

I use the professional plan

the professional plan

Sorry, it’s Enterprise only. I’ll edit my earlier response.

thanks

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.