Add filemtime() to the functions.php enqueue to ensure users get a fresh copy when you’ve updated the file

CSS:

$stylePath = get_template_directory().'/style.css';
wp_register_style( 'primary-stylesheet', get_template_directory_uri() . '/style.css', array(), filemtime( $stylePath ));
wp_enqueue_style( 'primary-stylesheet' )

JS:

$scriptPath = get_template_directory().'/js/script.js';
wp_register_script( 'custom-scripts', get_stylesheet_directory_uri() . '/js/script.js', array( 'jquery', 'jazzyscroll' ), filemtime( $scriptPath ), true );
wp_enqueue_script('custom-scripts');