What types of files should I serve through a CDN?

For optimal WordPress performance, serve these file types through your CDN:

  • Images (JPG, PNG, GIF, WebP)
  • JavaScript files (.js)
  • CSS stylesheets
  • Font files
  • PDF and other downloadable documents

However, avoid serving these through CDN:

  • Dynamic PHP files
  • WordPress core files
  • Admin dashboard files

Use the Flying Press plugin to automatically optimize and manage which assets get served through your CDN. For image optimization before CDN delivery, consider using the Imagify plugin.