set cache option for head request