Fix cache preg_match url for https addresses