How to improve PageSpeed and WPT metrics on WordPress

Premature end of file errors when using CloudFlare and how to fix it.