Negated file extensions in file URLs with querystrings or fragments are not recognized correctly
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3128116. --> Reported by: [dtv_rb](https://www.drupal.org/user/3528196) >>> <p><strong>Problem</strong></p> <p>Some CSS files are provided by the CDN domain, although CSS files are excluded by configuration.</p> <p><strong>Cause</strong></p> <p>The getCdnDomain method in the FileUrlGenerator does not recognize css URIs with a cache buster parameter properly e.g.<br> core/modules/filter/css/filter.caption.css?q8v85h</p> <p>Responisble code:<br> <code>$file_extension = mb_strtolower(pathinfo($uri, PATHINFO_EXTENSION));</code></p> <p>For the above URI the $file_extension would be "css?q8v85h" and not "css".</p>
issue