javascript - WordPress not updating the js file -
i changing javascript file, not showing in browser. cleared browser cache, purged cache through wp-admin, removed deflate code .htaccess, still doesn't show up.
themes/soundwave/js/prettyphoto.js?ver=4.2.3
when add other number in ver example, in url if type:
themes/soundwave/js/prettyphoto.js?ver=4.2.3.1
the change shown.
during development, avoid hassle of clearing browser cache passing dynamic variable file's version when enqueue it. instance, current time.
wp_enqueue_script( 'prettyphoto', 'prettyphoto.js', array(), date("h:i:s") );
Comments
Post a Comment