The getAllResponseHeaders() function returns all the header information of a resource, like length, server-type, content-type, last-modified, etc: