Serve static pages efficiently. Fix #53 (#118)

* 1st draft to serve static files faster

* Allow serving 5 images in a page

the 6th image cannot be served as the esp does not open more than 5 connections at the same time

* win the prize

* Update comments
This commit is contained in:
Gregor Hartmann
2019-11-14 18:58:56 +01:00
committed by Marcos
parent 9f4d7a9988
commit ca4fb20c00
4 changed files with 95 additions and 25 deletions

View File

@@ -31,6 +31,10 @@ return function (connection, req, args)
It works with three embedded images of cars, but the server crashes with four. Select the number of cars you want to see below.<br>
Whoever manages to modify nodemcu-httpserver to load all four images without crashing wins a prize!
</p>
<p>
OK I guess I win the prize, as now you can load five cars.<br>
Cheers HHHartmann
</p>
<p>
choose: <a href="?n=1">show one car</a>
<a href="?n=2">show two cars</a>