technically, u cant. cache is a default browser feature that cannot be disabled, but ive made a workaround.
introducing, nocactime (no cache bc of time)
basically, that is a script that u adding on ur website. this script is adding unix time to url of something.
for example, u used nocatime on some image. nocatime will take its url, and add "?no=unixtime"
this will make browser think that this is smth new and load it again.
want to use it? just paste this to ur website's code:
remember to change "type_of_adding" to script, style or image, and "url_to_file" to url.
(also if u using script on a css, place it intro head tag)
edit: actually, there was functions for adding alt, class and id to it lol. for example just add &id=text to script link and this will add id to item
dont want to embed this script? do this instead:
1. make placeholder tag with some id (for example, make an image tag with no src)
2. place this script somewhere:
<script>
document.querySelector("#id").src = "url_to_file" + "?nooo=" + new Date().getTime(); // replace id with actual id and url_to_file with actual url. and also change src if tag doesnt use src as a way to get smth. for example, style tag uses href
</script>