If you're running Squid to cache your website, you can use an htaccess file to control what kind of files should be cached, and for how long.