Cactus WIFI server only serves page once, sometimes twice

I think the thread will work. Please have a look. But I recommend you try the espduino firmware. It’s great for arduino.