My email reply bounced back, so I'll reply here:
You don't need to edit the .htaccess file manually, W3 Total Cache can manage all of your caching policies.
For the snippet of code in question, you just need to configure browser caching in W3 Total Cache.