The changes I make to an external JS file of my WP plugin are only applied after I clear my browser’s cache

I’m making a WordPress plugin which loads an external JS file for some Google Maps related operations. But the problem is that the changes I make to this external JS file are not applied immediately and shown on the Google Chrome browser, but instead I have to delete the “Images and other data” cache of Chrome in order for the changes I make to the JS file to be applied.

For example I have an alert(“DynamicMap.js file was loaded succesfully.); in the first line of the file but the changes I make to the text only apply after I clear the cache. Does anyone know why does this happen and if I can prevent it? Thanks in advance. (Note that I’m testing plugin online on my personal website, not on the localhost.)

Read more here:: The changes I make to an external JS file of my WP plugin are only applied after I clear my browser’s cache

Leave a Reply

Your email address will not be published. Required fields are marked *