samedi 9 mai 2015

How to refresh the page's cache if scripts have been updated?

I searched online to find a solution for refreshing user cache if the website has been updated. Couldn't find anything apart from setting version control on url of the script files...

I'm answering my question below, and need to know if this is a perfect code and might not keep refreshing in a loop. Please could someone let me know if any modifications are required?

Aucun commentaire:

Enregistrer un commentaire