Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

in the scripts section he says "Generate Content-Length response headers. It’s easy to do, and it will allow the response of your script to be used in a persistent connection. This allows clients to request multiple representations on one TCP/IP connection, instead of setting up a connection for every request. It makes your site seem much faster."

does he mean, for example, when serving up a dynamic php page, where the content might change for each request, you should still generate a content-length header before outputing the content?



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: