In my never ending quest for a faster website, I thought perhaps I could cache some scripts. I'm using Yslow to rate my site, everything is pretty much A (which is great, our website on Pingdom loads in 0.4-0.6 seconds which is 5-20x quicker than our competitors) except two things:
Add expire headers:
(2011/7/7) http://fonts.googleapis.com/css?...
(2011/7/6) http://fonts.googleapis.com/css?...
(no expires) http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4d7a205f1e2a0b4b
And too many DNS lookups:
The components are split over more than 4 domains
static1.scirra.net: 4 components, 19.3K (4.3K GZip)
fonts.googleapis.com: 2 components, 0.8K (0.5K GZip)
static3.scirra.net: 2 components, 5.5K (2.7K GZip)
static4.scirra.net: 3 components, 12.7K
static2.scirra.net: 3 components, 76.6K
s7.addthis.com: 3 components, 126.3K (40.4K GZip)
ajax.googleapis.com: 1 component, 78.6K (27.1K GZip)
www.scirra.com: 1 component, 8.0K (3.3K GZip)
This answer on SO:
Suggests having an intermediatory caching script, which fetches these and serves them from your own server.
Thoughts? If you're a speed nut like me can we expect to shave some loading time off for the users at the expense of our bandwidth?