Custom Cache Key Determination


We have a page rule that creates a custom cache key for our requests based on a specific set of data.

Is there an easy way to determine a specific requests cache key or what format the cache key ends up becoming from our page rule?

We need to have a worker manipulate a response body, then do a cache.put so it overwrites the original cached asset and it seems the best way is to just use the same cache key as the original.

Thank you in advance!