So I'm using Ubuntu 20.04 in WSL2, and using the npm http-server (https://www.npmjs.com/package/http-server)
But, by default it enables caching, so I preferably want to disable caching by default. I know I can do it using
http-server -c-1
But is there any way to make that the default behaviour of http-server? So when I just run http-server, caching is disabled by default. I would like to not use aliasing to achieve this, instead using a bash script. I saw (in a course which had a codespace setup), that this was achieved by using a bash script, and whenever I ran which http-server, it would return something like /opt/name_conf/bin/http-server, which running http-server on my setup gives /usr/bin/http-server
How do I achieve the config that allows me to do this?