basic-http-server icon indicating copy to clipboard operation
basic-http-server copied to clipboard

Cache files

Open benruijl opened this issue 6 years ago • 2 comments
trafficstars

At the moment it seems that on every request, a file is loaded from disk. Can this be cached?

benruijl avatar Apr 30 '19 14:04 benruijl

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.

ivanceras avatar May 05 '19 08:05 ivanceras

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.

brson avatar Jun 29 '19 21:06 brson