Code Design Internet Linux UNIX

Enable keep-alive in Apache

What is keep alive? Keep alive is a method to allow the same tcp connection for HTTP conversation instead of opening a new one with each new request. More simply put, it is a communication between the web server and the web browser that says “you can grab more than just one file at a time”. Keep […]

Code Internet Wordpress

Browser Caching via .htaccess

I added simple browser caching through my .htaccess file. vi .htaccess IMPORTANT: Add the following to the top of the file. ## EXPIRES CACHING ## ExpiresActive On ExpiresByType image/jpg “access 1 year” ExpiresByType image/jpeg “access 1 year” ExpiresByType image/gif “access 1 year” ExpiresByType image/png “access 1 year” ExpiresByType text/css “access 1 month” ExpiresByType text/html “access 1 month” […]