Archives: Code Snippets

Enabling Browser Caching via .htaccess

Add these rules to .htaccess for setting Expires and Cache-control headers: https://gist.github.com/anwerashif/6ff0ef9ee0008937990dbd9f5cfc5bc3

Enabling Gzip Compression Via .htaccess

The easiest way to access .htacces is via FTP but you can also use cPanel or any other admin interface. Adding the following piece of

Want to speed up WordPress site?