Table of Contents

Set Up CloudFront CDN in LiteSpeed Cache for WordPress

Create CDN with CloudFront

  1. Get your CloudFront Domain Name
  2. Make sure your site can be visited directly through the CloudFront Domain Name

Set Up in LSCache Plugin

  1. From the WP Dashboard, navigate to LiteSpeed Cache > Settings > CDN.
  2. Set Enable CDN to ON
  3. Enter CDN URL as your CloudFront Domain Name
  4. Enable the relevant Include buttons. e.g. Images and CSS. For this example, if we don't Include JS, then we also need to remove .js from Include File Types
  5. Set up Original URL as your original domain name (and sub-folder if you are using one)

Verify

Check that the CSS is served from CloudFront

Check that the JS is served from the original domain