This tutorial shows an example of how a .htaccess file should look like when you need to enable GZip, allow using CDN with Webfonts, and set custom expiry headers. You can also check out the magnificent .htaccess file included with HTML5 BoilerPlate.

Important Note

This should all be at the very top of your .htaccess file. If you already have the lines listed under Section 1, you need to remove them.
The .htaccess file can also be used to define a list of “cacheable items” For example, set anything that is not png, jpg, gif, css, js to “no cache”. This way, if you ever serve your full domain through CDN, only certain files will be cached. Please note that using a full domain (www.domain.com) as a CDN url is only available to Enterprise/Contract clients.