Skip to content

How-to Guides

Technical References

Retrieve the URL of a file without the CDN URL

Usually having the CDN being returned as the location of files is advantageous. The files are closer to the end user.
There are some instances such as CORS and other cross domain reasons that would make you not want the CDN domain.
Using the function wpcom_vip_noncdn_uri Will give you the URL you are looking for.

Last updated: November 19, 2020