Website response time: Difference between `Load` and `Finish`

The Finish time in Chrome Devtools includes the asynchronously loading (non blocking) objects/elements on the page which may continue downloading way after the onLoad event for the page has fired. The response time for a website generally means the Load time, because that is user perceivable, and at this point user can see that the … Read more

Server response gets cut off half way through

I had the same problem: Nginx cut off some responses from the FastCGI backend. For example, I couldn’t generate a proper SQL backup from PhpMyAdmin. I checked the logs and found this: 2012/10/15 02:28:14 [crit] 16443#0: *14534527 open() “/usr/local/nginx/fastcgi_temp/4/81/0000004814” failed (13: Permission denied) while reading upstream, client: *, server: , request: “POST / HTTP/1.1″, upstream: … Read more

How do I capture a “response end” event in node.js+express?

Strangely enough, it appears that the response emits a “finish” event when the response is closed: https://web.archive.org/web/20120825112648/http://sambro.is-super-awesome.com/2011/06/27/listening-for-end-of-response-with-nodeexpress-js/ Despite this blog entry being a bit old, this event still exists (Line 836 in lib/http.js), so I assume it won’t disappear soon, even though neither node’s nor express’ documentation mention it. By early 2014 it has moved … Read more

Android Volley + JSONObjectRequest Caching

See this answer – Set expiration policy for cache using Google’s Volley This means Volley decides whether to cache response or not based only on headers “Cache-Control” and then “Expires”, “maxAge”. What you could do is change this method com.android.volley.toolbox.HttpHeaderParser.parseCacheHeaders(NetworkResponse response) and ignore these headers, set entry.softTtl and entry.ttl fields to whatever value works for … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)