How to increase Yslow score from C to B at Dreamhost

I have a small site hosted on Dreamhost.
Yslow Score with default setting is C, or 77.
Later I do the following optimization to increase it to B, or 89. Based on Yslow v2 test.
The key is to change .htaccess file.
Put following content into .htaccess file on root of the site.

FileETag none<br />
ExpiresActive On<br />
ExpiresDefault A86400<br />
ExpiresByType application/javascript A8640000<br />
ExpiresByType application/x-javascript A8640000<br />
ExpiresByType text/css A8640000<br />
ExpiresByType image/x-icon A8640000<br />
ExpiresByType image/gif A6048000<br />
ExpiresByType image/png A6048000<br />
ExpiresByType image/jpeg A6048000<br />
ExpiresByType application/pdf A6048000<br />
ExpiresByType text/html A300<br />
AddOutputFilterByType DEFLATE text/css application/javascript

The second improvement I made is do not use external domain’s images. Put all images on the same site. It reduce the DNS loolup time.
It took me about 10 minutes to implement this optimization.