update hook to support CDN files (files that start with http or https)