I just started using the CDN module on a website where I'm using the Responsive Image module. The output on Nodes and Views is as follows:
<picture>
<source srcset="/sites/xxx/files/styles/news_article_full/public/2024-04/439258515_829439895877639_5274276536154811976_n%20%281%29.jpg?h=56c650d7&itok=4w6J2hkO 1x, /sites/xxx/files/styles/news_article_full_desktop_2x/public/2024-04/439258515_829439895877639_5274276536154811976_n%20%281%29.jpg?h=56c650d7&itok=2ixAB-23 2x" media="all and (min-width: 1200px)" type="image/jpeg" width="837" height="462">
<source srcset="/sites/xxx/files/styles/news_article_full/public/2024-04/439258515_829439895877639_5274276536154811976_n%20%281%29.jpg?h=56c650d7&itok=4w6J2hkO 1x, /sites/xxx/files/styles/news_article_full_desktop_2x/public/2024-04/439258515_829439895877639_5274276536154811976_n%20%281%29.jpg?h=56c650d7&itok=2ixAB-23 2x" media="all and (max-width: 1199px)" type="image/jpeg" width="837" height="462">
<source srcset="/sites/xxx/files/styles/news_article_full/public/2024-04/439258515_829439895877639_5274276536154811976_n%20%281%29.jpg?h=56c650d7&itok=4w6J2hkO 1x, /sites/xxx/files/styles/news_article_full_desktop_2x/public/2024-04/439258515_829439895877639_5274276536154811976_n%20%281%29.jpg?h=56c650d7&itok=2ixAB-23 2x" media="all and (max-width: 991px)" type="image/jpeg" width="837" height="462">
<source srcset="/sites/xxx/files/styles/news_article_full_mobile_1x/public/2024-04/439258515_829439895877639_5274276536154811976_n%20%281%29.jpg?h=56c650d7&itok=9Dfia8ap 1x, /sites/xxx/files/styles/news_article_full_mobile_2x/public/2024-04/439258515_829439895877639_5274276536154811976_n%20%281%29.jpg?h=56c650d7&itok=rUa4h9-F 2x" media="all and (max-width: 767px)" type="image/jpeg" width="428" height="236">
<img loading="eager" src="https://sitexxx.b-cdn.net/sites/xxx/files/styles/news_article_full_mobile_1x/public/2024-04/439258515_829439895877639_5274276536154811976_n%20%281%29.jpg?h=56c650d7&itok=9Dfia8ap" width="428" height="236" alt="xxx" class="img-responsive">
</picture>
As you can see, only the fallback img tag has an absolute URL and is served from the CDN. The other URLs are just served locally. I see no settings in the CDN or the Responsive Image module to change this. Do I need to manually rewrite URLs in templates and Views? Or is there an easier way to fix this? I hoped the CDN module would just take care of the rewriting.