Avoid caching problems and have WordPress always load the latest version of your included files.
Have WordPress always load the latest version of CSS stylesheets and JavaScript files
WordPress
// PHP
function guyPrimaveraLoadScripts() {
$cssPath = get_stylesheet_directory() . '/myStylesheet.css';
wp_enqueue_style(
'myStylesheet',
get_stylesheet_directory_uri() . '/myStylesheet.css',
array(),
filemtime( $cssPath )
);
$jsPath = get_stylesheet_directory() . '/js/myJavaScript.js';
wp_enqueue_script(
'myJavaScript',
get_stylesheet_directory_uri() . '/js/myJavaScript.js',
array ( 'jquery' ),
filemtime( $jsPath ),
true
);
}
add_action( 'wp_enqueue_scripts', 'guyPrimaveraLoadScripts' );
Paste this snippet into your theme's functions.php or in a WordPress plugin.