Web Hosting Cheat Sheet

This is just a page to hold some of the common tweaks I use on a regular basis.

Enable Gzip compression in cPanel.

cPanel -> Optimize Website -> Compress All Content

GZIP Compression cPanel

Enable expires and headers. Add to .htaccess file

# 1 Year
<FilesMatch "\.(flv|gif|jpg|jpeg|png|ico|swf)$">
Header set Cache-Control "max-age=31536000"
# 1 Week <FilesMatch "\.(js|css|pdf|txt)$">
Header set Cache-Control "max-age=604800"