[intlink id=”128″ type=”post”]In a previous post[/intlink], I talked about using Yahoo!’s YSlow Firefox plug-in to analyze and improve your Web site’s speed. In that post I mentioned that my site—www.larryullman.com—fared pretty well (an 86 out of 100) but there were a couple of things that I hadn’t even heard of before. Well, I started making some tweaks, and here’s the result so far, including discussion of CDNs, which were new to me.
First up, it turns out that CDNs are Content Delivery Networks. The premise is that instead of storing all your site’s content on one server, you should store it on multiple servers around the country or world. Then users will be able to download specific files from your site from a server close to them (this all happens behind the scenes; the end user isn’t aware of it). Now, my Web site is just on one server and doesn’t merit using a CDN, so this didn’t really apply to me. I was, however, able to fake a CDN by following these steps.
#Far Future Expires Header <FilesMatch "\.(gif|png|jpg|js|css|swf)$"> ExpiresActive On ExpiresDefault "access plus 1 years" </FilesMatch>
<link rel="stylesheet" type="text/css" href="pagename.css?v=1.1" />