If your website is protected by a password this will happen – eg .htaccess password on a staging environment.
If this is the case no need to worry for your live site!
You can double check it’s working by loading your homepage in a logged out browser, check the timestamp at the end of the html source. Load the page again and compare the timestamp. Caching is working if the timestamps match.