From a98d9aa94dc27c23a59eb7df9e7094c91460e779 Mon Sep 17 00:00:00 2001 From: Pedro Reis Date: Thu, 17 Mar 2016 16:38:58 +0000 Subject: [PATCH] Added timestamps to scripts file --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 3d2d80c..68abf8d 100644 --- a/functions.php +++ b/functions.php @@ -73,7 +73,7 @@ function barebones_scripts() wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js', false, '1.11.3', true ); wp_enqueue_script( 'jquery' ); - wp_enqueue_script( 'script', get_stylesheet_directory_uri() . '/js/script.min.js', ['jquery'], null, true ); + wp_enqueue_script( 'script', get_stylesheet_directory_uri() . '/js/script.min.js?' . time(), ['jquery'], null, true ); } add_action( 'wp_enqueue_scripts', 'barebones_scripts' );