I have new Django project with frontend, initially written not for Django at all, so I cannot connect this script:
<script>
document.body.appendChild(document.createElement('script')).
src='js/main_script.js?r='+Math.floor(Math.random()*99999999999999999999);
</script>
The file js/main_script.js is located in static folder, other js scripts are loaded as intended. And as I understand this script prevents caching for some reason.
So, what am I missing in that part? Thanks in advance for any clarifications
Math.random()*99999999999999999999?