change query resource from local to CDN