This actually includes all query param values as paths to check. It then checks for file pattern matching against "tarball" patterns.
When no extension is detected, it's doing as before, fallbacks to head query the url to have more information on the file.
Prior to this commit, this only looked over a hard-coded list of keys (file, f, name, url) detected through docker runs.
This way of doing it should decrease future misdetections.
Related to T3781