4 ms·
Is it possible using goo.gl might get you something like a poor mans CDN? I'm thinking it may possibly respond immediately with cached results.
by jasonkostempski 15y ago
Is it possible using goo.gl might get you something like a poor mans CDN? I'm thinking it may possibly respond immediately with cached results.
- mburns 15y agoNo. Regardless, a second DNS query will have to be performed by the client when Google responds with the permanent redirect.
- rhubarbquid 15y agoNo, it responds with a redirect: $ curl http://goo.gl/OCK7V <HTML> <HEAD> <TITLE>Moved Permanently</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1>Moved Permanently</H1> The document has moved <A HREF="http://twitter.github.com/hogan.js/1.0.0/hogan.js">here </A>. </BODY> </HTML> Edit: I suppose the headers are more important: $ curl -I http://goo.gl/OCK7V HTTP/1.1 301 Moved Permanently Content-Type: text/html; charset=UTF-8 Expires: Thu, 22 Dec 2011 18:18:46 GMT Date: Thu, 22 Dec 2011 18:18:46 GMT Cache-Control: private, max-age=86400 Location: http://twitter.github.com/hogan.js/1.0.0/hogan.js X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block Server: GSE Transfer-Encoding: chunked
- adgar 15y ago> I'm thinking it may possibly respond immediately with cached results. Just because nobody explicitly said it - a 301 redirect is actually cacheable per §10.3.2 of RFC 2616. But google doesn't set a long cache duration - another one of your responders posted the response headers, it was 86400s which is 1 day.