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

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -