Minify + GZip (Deflate) your server response

Today, I was browsing around the web and found some interesting articles which are related to minify extjs on the fly. Well, if I can minify the server response and deflate it, that would be even faster to deliver to client's browser? So I decided to give it a go.

Bang~ It is faster than just minify the content. But so far I just tested with Apache server as it is most used http server in my projects. I just added the following code in my .htaccess file

# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

By the way, you may want to enable the in your httpd.conf to make it work.

Anyway, have a look at How To Optimize Your Site With GZIP Compression. It really gives a heads up. So you may want to have a try on your projects.

Related Posts

In case you missed it

A short update from me
A short update from me
It has been a while since I post a blog page on Blogger which was created back in 2013. So I took an opportunity to...
Showcase the blog site elements
Showcase the blog site elements
The standard paragraphs Welcome to this demo page! Here, you’ll get an exclusive preview of our cutting-edge platform designed to revolutionise your digital experience. Our...
Issue with
Issue with "Don't track your own pageviews"
Do you use your own domain name with Blogger? Do you place “Blogger’s Stats Widget” on your page? Or do you regularly check up the...