feat: Add support for different cdns

- based on the regex pattern
style: minor improvements
feat: add support for multi patterns