Example page of mobile no-sleep with long post request
Usage
- Place NoSleep.min.js in project dir.
- Configure webserver project.
- Open index.html on mobile device.
Made with NoSleep.js. Tested on iPhone Safari 15.4.
Don't forget to turn on keep alive connections and increase misc timeouts on webserver!
upstream php5fcgi {
# other settings
keepalive 16;
}
location ~ \.php$ {
fastcgi_pass php5fcgi;
# other settings
# andrew test long post
proxy_http_version 1.1;
proxy_set_header Connection "";
fastcgi_read_timeout 1200s;
}