My server uses PHP-FPM and NGINX
Everything with the non www. url (http://site.com) works well with cached turned on (it gets redirected) except for the front page, when front page is cached and someone goes to http://site.com it displays a blank page everything else is redirected to the www. version and it works fine.