CDN Caching with accept-encoding

Hey, I am trying to understand how encoding interacts with the cache. Currently I have a solution that returns gzip from workers, which is then cached on the CDN and also converted to brotli encoding. I am wondering what happens when a client which only accepts gzip encoding requests a resource that has been cached using brotli. Will this be a new request to the origin to get the same resource with gzip, or will the edge cache convert the brotli cached resource into gzip and return it to the client? Cheers1
Was this page helpful?