Jetpack's photon causes local site to try and serve images from Wordpress CDN

On my remote site I have Jetpack's site accelerator (formerly Photon) turned on. So all the images are cached and then served from the Wordpress CDN. When I ported the site to my local machine, including all the options, some setting in options caused the cdn url to be appended to all the srcset tags.

The srcset values are of the form https://i2.wp.com/mh.local/wp-content/uploads/2019/09/Singapore-0595-HDR.jpg This does not work of course since its Jetpack is not connected in local. How can I prevent this behaviour of the Jetpack option causing the images to be served up from the cdn in local?

Topic plugin-jetpack images cdn Wordpress

Category Web


The the end the solution was to turn on Jetpack in development mode which allowed me to turn photon/ site-accelerator off. My site had a period in the name http://mh.local, so it was necessary to add [const JETPACK_DEV_DEBUG = TRUE][1]; to my wp-config file before I could turn Jetpack on.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.