Follow the steps in the Images.
First, we’re going to Configure W3 Total Cache.
Install W3 Total Cache – https://wordpress.org/plugins/w3-total-cache/18
Click on the Performance located on the WordPress menu.
Click General Settings.
Enable the Page Cache.
Scroll Down. Set Option noted in the below image.
Most of the Hosting Providers are using Varnish cache or some other caching
Leave Fragment Cache, Monitoring, Licensing, Miscellaneous.
Now go to Page Cache in the menu
Do Everything as in the Image. and Click Save All Settings Button
Now go to Minify Tab
Do the same as in the image.
Now go to Database Cache
Now go to Browser Cache
Now install the Autoptimize Plugin – https://wordpress.org/plugins/autoptimize/41
Go to Settings -> Autoptimize
Click Show Advanced settings button
Follow the Below images and do everything as it is.