Is there a recommended format for setting multiple values in the Vary header in PHP to ensure proper functionality?

When setting multiple values in the Vary header in PHP, it is recommended to separate each value with a comma to ensure proper functionality. This allows the server to properly handle caching and content negotiation based on the specified values.

<?php
header('Vary: Accept-Encoding, User-Agent');
?>