Issue #2891162 by Wim Leers: Refactor: extract logic from FileUrlGenerator::generate() into a new ::getCdnDomain() method