$script_url . '?t=' . time();
// set expires header
header('Expires: Thu, 1 Jan 1970 00:00:00 GMT');
// set cache-control header
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
header('Cache-Control: post-check=0, pre-check=0',false);
// set pragma header
header('Pragma: no-cache');
// $script = file_get_contents(...);
?><script type="module"><?=$script;?></script><?
<script src="/assets/js/main.js?v=1.2"></script>
rename()
на PHP<script src="xxxxx.js"></script>