{"id":9436,"date":"2018-03-28T06:00:30","date_gmt":"2018-03-28T10:00:30","guid":{"rendered":"https:\/\/blog.litespeedtech.com\/?p=9436"},"modified":"2018-03-28T06:00:30","modified_gmt":"2018-03-28T10:00:30","slug":"jetpack-photon-cdn-and-litespeed-cache","status":"publish","type":"post","link":"https:\/\/lswp.store\/index.php\/2018\/03\/28\/jetpack-photon-cdn-and-litespeed-cache\/","title":{"rendered":"WpW: Using Jetpack&#8217;s Photon CDN With LSCache"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/03\/null-11.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-9438\" src=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/03\/null-11.png\" alt=\"WordPress Wednesday: Jetpack\u2019s Photon CDN and LiteSpeed Cache\" width=\"640\" height=\"320\" srcset=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/03\/null-11.png 640w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/03\/null-11-300x150.png 300w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/03\/null-11-600x300.png 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Welcome to another installment of <a href=\"http:\/\/blog.litespeedtech.com\/tag\/wordpress-wednesday\">WordPress Wednesday<\/a>!<br \/>\nToday\u2019s topic is: <strong>Jetpack Photon CDN and LiteSpeed Cache<\/strong><\/p>\n<p><em><strong>Disclaimer<\/strong>: The information contained in this post is accurate for LSCWP v2.1.1.1 [<a href=\"https:\/\/wordpress.org\/plugins\/litespeed-cache\/#developers\">release log<\/a>]. If you are using a newer version of the plugin, some details may have changed. Please<a href=\"https:\/\/www.litespeedtech.com\/support\/wiki\/doku.php\/litespeed_wiki:cache:lscwp\"> refer to our wiki<\/a> for the latest!<\/em><\/p>\n<h2>What is Photon?<\/h2>\n<p><a href=\"https:\/\/wordpress.org\/plugins\/jetpack\/\">Automattic\u2019s Jetpack plugin<\/a> allows self-hosted WordPress blogs to use some of the functionality that is natively available to WordPress.com blogs. One of the available functions is a content delivery network (CDN) for images. Originally, this service went by the name \u201cPhoton,\u201d but now it they simply call it \u201c<a href=\"https:\/\/jetpack.com\/support\/photon\/\">Jetpack Image CDN<\/a>.\u201d (Many people still refer to it as Photon, which is why I mention it.)<\/p>\n<p>Use of the image CDN is contingent upon your site being Jetpack-connected. If you disconnect Jetpack from your site, you are no longer allowed to use the image CDN.<\/p>\n<h2>Using Jetpack Image CDN with LSCWP<\/h2>\n<p><strong>Jetpack\u2019s Image CDN and LiteSpeed Cache for WordPress are 100% compatible and may be used together right out of the box.<\/strong><\/p>\n<p>Normally we recommend enabling CDN support in the LiteSpeed plugin, and then uninstalling any CDN-specific plugin you may have had. <em>That is not the case here<\/em>.<\/p>\n<p>Because of Jetpack\u2019s rule that Jetpack must remain connected to your site, you are not allowed to uninstall their plugin if you want to continue to use their image CDN.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/03\/null-9.jpeg\"><img decoding=\"async\" class=\"aligncenter size-large wp-image-9440\" src=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/03\/null-9-1024x683.jpeg\" alt=\"Jetpack\u2019s Photon CDN and LiteSpeed Cache: Three Airplanes in Formation at an Air Show\" width=\"1024\" height=\"683\" srcset=\"https:\/\/lswp.store\/wp-content\/uploads\/2018\/03\/null-9-1024x683.jpeg 1024w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/03\/null-9-300x200.jpeg 300w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/03\/null-9-768x512.jpeg 768w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/03\/null-9-1536x1024.jpeg 1536w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/03\/null-9-2048x1366.jpeg 2048w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/03\/null-9-1320x880.jpeg 1320w, https:\/\/lswp.store\/wp-content\/uploads\/2018\/03\/null-9-600x400.jpeg 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>So, how do you make all of this work when you have both Jetpack and LiteSpeed plugins installed? It\u2019s simple. You let Jetpack do its thing, and set up LiteSpeed to stay out of the way:<\/p>\n<ol>\n<li>Turn on the image CDN feature in Jetpack.<\/li>\n<li>Leave <strong>Enable CDN<\/strong> set to <code>OFF<\/code> in <strong>LiteSpeed Cache &gt; Settings &gt; CDN<\/strong>.<\/li>\n<\/ol>\n<p>LSCache for WordPress respects the settings of other CDN plugins, when LiteSpeed\u2019s CDN support is turned off.<\/p>\n<h2>A Note about Image Optimization<\/h2>\n<p>LiteSpeed Cache has an Image Optimization service, but we don\u2019t recommend you use it, if you have Jetpack\u2019s Image CDN enabled. Jetpack\u2019s CDN automatically does its own optimization, and will ignore the LiteSpeed-optimized images.<\/p>\n<p>Additionally, Jetpack has its own WebP replacement functionality, so <em>do not<\/em> enable <strong>LiteSpeed\u2019s Image WebP Replacement<\/strong> setting in the <strong>Media<\/strong> tab.<\/p>\n<h2>To Summarize<\/h2>\n<p>If you want to use Photon, then LiteSpeed will respect that, as long as you leave LiteSpeed\u2019s CDN and Image Optimization features turned off.<\/p>\n<p>One exception: if you have multiple CDNs in use (i.e., Jetpack for the images and, say, MaxCDN for other static content), you may enable LiteSpeed\u2019s CDN support, but be sure to configure it <em>only for the file types not served by Jetpack<\/em>.<\/p>\n<p>&#8212;<\/p>\n<p>Have some of your own ideas for future <a href=\"http:\/\/blog.litespeedtech.com\/tag\/wordpress-wednesday\">WordPress Wednesday<\/a> topics? Leave us a comment!<\/p>\n<p>Don\u2019t forget to meet us back here next week for the next installment. In the meantime, here are a few other things you can do:<\/p>\n<ul>\n<li>Subscribe to the <a href=\"http:\/\/blog.litespeedtech.com\/tag\/wordpress-wednesday\/feed\/\">WordPress Wednesday RSS feed<\/a><\/li>\n<li>Download <a href=\"https:\/\/wordpress.org\/plugins\/litespeed-cache\/\">LiteSpeed Cache for WordPress plugin<\/a><\/li>\n<li>Learn more about the plugin <a href=\"https:\/\/www.litespeedtech.com\/products\/cache-plugins\/wordpress-acceleration\">on our website<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Jetpack\u2019s Image CDN and LiteSpeed Cache for WordPress are 100% compatible and may be used together right out of the box.<\/p>\n","protected":false},"author":1,"featured_media":9438,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[28],"tags":[71,149,316,317],"class_list":["post-9436","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cache","tag-content-delivery-networks","tag-jetpack","tag-wordpress","tag-wordpress-wednesday"],"jetpack_featured_media_url":"https:\/\/lswp.store\/wp-content\/uploads\/2018\/03\/null-11.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/posts\/9436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/comments?post=9436"}],"version-history":[{"count":0,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/posts\/9436\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/media\/9438"}],"wp:attachment":[{"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/media?parent=9436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/categories?post=9436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lswp.store\/index.php\/wp-json\/wp\/v2\/tags?post=9436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}