<script type="text/javascript" src="main.js"></script>
If This is in the my header page and which is included in all pages.My question is that when there are any changes in main.js the user has to refresh his browsers cache.So instead of this if we use
<script type="text/javascript" src="main.js?1"></script>
user would get latest changes without refreshing the cache.If again a change ismade in main.js change has to be made like
<script type="text/javascript" src="main.js?sumnumber"></script>
My question is that is there any generic way to do this