Are there any specific PHP code lines that need to be added to disable cache for Javascript?

When working with Javascript files in PHP, sometimes it is necessary to disable caching to ensure that the latest version of the file is always loaded by the browser. To achieve this, you can add specific PHP code lines that set the cache-control headers to prevent caching of the Javascript file.

<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
?>