basic-http-server
basic-http-server copied to clipboard
Cache files
trafficstars
At the moment it seems that on every request, a file is loaded from disk. Can this be cached?
This is actually good, since I'm mostly using this for development. Caching files would be a nightmare when used in development. I've used simple-http-server before but it seems to be caching a lot of files which requires restarting the server over and over.
Thanks for the suggestion.
Since this is partially a teaching tool, and for simplicity sake, I'm inclined not to cache files and leave it up to the OS's own page cache.