UPDATE: the reason was in the "working" duplicated URLs for the site - with HTTPS (this one is been written in the inc/header.inc.php file) and HTTP. After removal the less variant it started to work fine.