I regularly see gstatic.com in the status bar, what is that domain?

125

35

Sometimes when I am browsing the web, among the hostnames that fly by in the statusbar is one that includes gstatic.com as the base domain. I can't navigate to http://gstatic.com to gain any more information. All I get is a Google page that says

The requested URL / was not found on this server.

So I imagine that gstatic.com has something to do with Google. Whatever it is, it seems to take forever when I am browsing a page that references gstatic.com.

eleven81

Posted 2009-11-02T23:32:24.103

Reputation: 12 423

Question was closed 2010-08-27T08:12:12.080

Answers

126

Google has off-loaded static content (JavaScript code, images and CSS) to a different domain name in an effort to reduce bandwidth usage and increase network performance for the end user.

  • increases performance by increasing, in theory, the number of connections the browser can use, by default, most browsers will only make two connections to a single server. While this is configurable, most users don't bother, so having content come from multiple domains, it can open two connections for every domain the site uses. This loads the content into the users browser faster.

  • decreases bandwidth by disabling cookies and other HTTP headers for the gstatic.com domain. Believe it or not, disabling headers greatly reduces bandwidth usage, especially if a page uses a lot of static files.

  • static content can be offloaded to geographically diverse CDN servers. Google can push all the content to servers that are nearest to you. This is probably more applicable to a normal corporate site, as Google does a great job of pushing everything to a datacenter closest to you. But for a normal company, you could split out your dynamic content and your static content and then pay a CDN provider to host your static content, reducing your corporate datacenter's bandwidth usage, while improving load times for your user.

Roy Rico

Posted 2009-11-02T23:32:24.103

Reputation: 4 808

2

The link above is dead. https://blog.stackoverflow.com/2009/08/a-few-speed-improvements/

– Sankalp – 2016-02-17T17:07:23.620

Is it possible to disable this? I have a tool that I'm trying to use that hooks into the first text/html served and as it so happens this is actually being served up as that, preventing the tool from reaching my index.html – buddyp450 – 2019-03-22T16:53:47.160

1great, I forgot the cookies – Jader Dias – 2009-11-02T23:48:11.327

13It's not ALL static. There is a subdomain "csi.gstatic.com" that is used for some sort of logging. No resources are returned, and sometimes it takes a LONG time (over 30 seconds) for the URI to return just empty content. – Portman – 2009-12-02T13:20:36.657

5My pageload always gets slower at gstatic lookup! :( – Ivan Ivković – 2013-10-21T06:16:11.473

10

For what it's worth, the Stack Overflow family of sites does the same thing with sstatic.net. See Jeff's blog post: http://blog.stackoverflow.com/page/12/

– ale – 2009-12-30T20:48:29.777

28

gstatic.com is a cookieless domain to deliver static content for Google. See this article for more:
Best Practices for Speeding Up Your Web Site - Use Cookie-free Domains for Components

When the browser makes a request for a static image and sends cookies together with the request, the server doesn't have any use for those cookies. So they only create network traffic for no good reason. You should make sure static components are requested with cookie-free requests. Create a subdomain and host all your static components there.

If your domain is www.example.org, you can host your static components on static.example.org. However, if you've already set cookies on the top-level domain example.org as opposed to www.example.org, then all the requests to static.example.org will include those cookies. In this case, you can buy a whole new domain, host your static components there, and keep this domain cookie-free. Yahoo! uses yimg.com, YouTube uses ytimg.com, Amazon uses images-amazon.com and so on.

Another benefit of hosting static components on a cookie-free domain is that some proxies might refuse to cache the components that are requested with cookies. On a related note, if you wonder if you should use example.org or www.example.org for your home page, consider the cookie impact. Omitting www leaves you no choice but to write cookies to *.example.org, so for performance reasons it's best to use the www subdomain and write the cookies to that subdomain.

Tuan Anh Hoang-Vu

Posted 2009-11-02T23:32:24.103

Reputation: 1 926

3But It's making it slower than it was before for many users. – jj_ – 2015-08-22T15:08:25.337

2I don't see how? – Tuan Anh Hoang-Vu – 2015-08-22T16:08:49.843

4It hangs. How else? – jj_ – 2015-08-22T17:42:13.703

15

If you're like me, you probably notice the gstatic domain because your browser is paused waiting for a resource.

If the domain you're seeing is

csi.gstatic.com

then note that this is NOT a static resource. It's some kind of internal logging (much like Google Analytics). If you do a Google search for csi gstatic you'll see that many people wait up to 30 seconds for this URI to be processed by Google.

Google, for their part, has never (to my knowledge) publicly mentioned csi.gstatic.com/csi.

Portman

Posted 2009-11-02T23:32:24.103

Reputation: 1 160

4

gstatic.com is a google owned domain where it hosts its static content, mainly images. The main purpose of this domain is for improving the performance of other sites, and not to build a site. One of the motives of the existence of such a domain is because of the main browsers limitations regarding simultaneous downloads from a single subdomain. There was a version of the main browsers that limited the simultaneous downloads to 4. Web performance research pointed that if you created up to four subdomains the speed of page loading for pages with much static files would improve.

Jader Dias

Posted 2009-11-02T23:32:24.103

Reputation: 13 660

3In our case we are using maps.googleapis.com and the request to csi.gstatic.com return an empty / not existing image (length 0). The GET request to csi.gstatic.com contains parameters like csi?v=2 s=mapsapi3 action=apiboot size=800x240 maptype=m. So in our case it certainly looks like it is about tracking how we use maps. I am uncertain about your statement The main purpose of this domain is for improving the performance of other sites Could you add information and details to back this up? – surfmuggle – 2015-07-14T10:43:21.167