Install Varnish on cPanel server to serve static files.
wget https://raw.githubusercontent.com/MdNor/cpanel-varnish/master/install.sh
sh install.sh
You can play around with Varnish setting to get best result based on your preferences
nano /etc/varnish/default.vcl
You can validate the setting before applying
varnishd -C -f /etc/varnish/default.vcl
To apply the setting, restart Varnish
service Varnish restart
In case you want to reverse the setting and uninstall Varnish
wget https://raw.githubusercontent.com/MdNor/cpanel-varnish/master/uninstall.sh
sh uninstall.sh