`express.static` only reads up to a max of 1024 bytes, because the underlying `file.read` has that max (per default). Anything bigger is cut off. There is an [example on the nodemcu docs](https://nodemcu.readthedocs.io/en/master/en/modules/net/#netsocketsend) on how to send chunks