This is an old revision of the document!


LSCWP Configuration Settings: CDN

If you currently use a content delivery network, you can configure LSCWP so that they work together.

NOTE: This setup is not necessary for Cloudflare or other distributed proxy networks. Only enable CDN support for reverse proxy content delivery networks!

Learn more about CDN support on our blog.

OFF

CDN support is disabled by default.

When CDN support is enabled, static file links are replaced by CDN links in all tags containing src, data-src, and href attributes.

Here is the default recommended value:

.aac
.css
.eot
.gif
.jpeg
.js
.jpg
.less
.mp3
.mp4
.ogg
.otf
.pdf
.png
.svg
.ttf
.woff

empty string

This is the base URL for content that is served from the CDN. It should be a full URL beginning with http.

your site URL

This setting defaults to your site's base URL. It shouldn't be necessary to change this. If you do change it, be sure that the URL begins with // as in //yoursite.com. You may use a wildcard (*) here to specify 0 or more characters.

OFF

Turn this on to serve all images through the CDN. This includes image attachments, HTML <img> tags, and CSS url() attributes.

OFF

Turn this on to serve all CSS files through the CDN.

OFF

Turn this on to serve all JavaScript files through the CDN.

OFF

Use this spot to list, one per line, the file types that are to be served from the CDN. These should be static files. This setting affects all of the following HTML tags: src=“”, date-src=“”, and href=“”.

OFF

Use this spot to list file paths that you explicitly do not want to have served from the CDN. List them one per line. You can list a path in its entirety, or use a partial path that will be matched. Do not use wildcards.

Off

It can be faster to load JQuery from a remote CDN service. You may choose one here.

  • Admin
  • Last modified: 2017/12/20 16:32
  • by Hai Zheng