lundi 21 avril 2014

Google Drive as CDN for Websites, Advantage and Drawbacks

Advantage:

It's free, very quick to update.


Drawbacks:

Googledrive.com sends header no-cache, no-store, max-age=0, must-revalidate, like this:

So each query is reloaded from the drive host, the load time of the webpage is high.

If we do:

curl -I -r 200-300 http://googledrive.com/host/[MyGoogleDrivePath]/scripts/js/home.js

HTTP/1.1 301 Moved Permanently
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Date: Mon, 21 Apr 2014 18:36:32 GMT
Location: https://googledrive.com/host/[MyGoogleDrivePath]/scripts/js/home.js
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alternate-Protocol: 80:quic
Transfer-Encoding: chunked