आज मैं आपको बताऊंगा कि WordPress मे Gzip Compression कैसे Enable करते हैं. Gzip Compression Enable करने के बहुत से फायदे हैं. और ये Website page size कम करने का सबसे popular तरीका है. इससे हम अपनी website का page size 70% तक कम कर सकते हैं। तो चलिये जानते हैं How to Enable Gzip Compression और Gzip Compression कैसे Enable करे।
Contents
Gzip Compression Enable करने के फायेदे
- Website Page Loading Time कम होगा
- Website जल्दी process होगी
- Website page size कम होगा
- 1000KB Page का size 100KB का हो जाएगा जिससे Page size कम होगा
Gzip Compression Enable करने से पहले मेरे blog का page size 2.5 Mb मे था जो अब 797 kb का रह गया है. और page loading time 5-6 सेकंड था और अब 2-3 सेकंड है. तो Enable Gzip Compression और Speed up your Website.
Note: आप अपने Website/Blog का Page Size और Loading time GtMetrix या PingDom tools पर check कर सकते हो.
3 Ways to Enable Gzip Compression – Gzip Compression Enable करने के 3 तरीके
1. W3 Total Cache से Eanble करे:
अगर आप W3 Total Cache plugin Use करते हो तो आप इस plugin से Gzip Compression Enable कर सकते हो. Gzip Compression Enable करने के लिए Performance > Browser Cache) पर जाए और Enable HTTP (gzip) compression को टिक करे.
2. Enable Gzip Compression via .htaccess – .htaccess file से enable
आप .htaccess File मे ये code Add कर के भी Gzip Compression Enable कर सकते हो।
# 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 AddType x-font/otf .otf AddType x-font/ttf .ttf AddType x-font/eot .eot AddType x-font/woff .woff AddType image/x-icon .ico AddType image/png .png
.htaccess file edit करने के भी काफी तरीके है. मैं पहले ही अपनी post मे बता चुका हु कि WordPress .Htaccess File Edit कैसे करे.
3. WP HTTP Compression Plugin से Enable करे:
ये plugin पेज size को कम करने मे आपकी हेल्प करेगी. ये plugin 60-80% तक page size compress करेगी जिससे आपके blog/website का पेज Loading time भी कम होगा। इसमे सिर्फ आपको plugin install करके Activate करना है. कोई setting नहीं करनी है क्यूकी plugin automatic ही work करती है.
WP HTTP Compression Plugin Install करे
मैंने HadysHack पर Gzip Compression Enable करने के लिए 2nd method use किया है. और अब मेरा blog Perfectly चल रहा है. 🙂
I Hope ye Post आपके लिए helpful हो. अगर आपको कोई problem आए तो आप comments से पूछ सकते हो. Thanks.!
Bhai kya W3 total cache aur .htacces dono enable kar de ya kewal ek hi.
Karna ek hi baar Kisi bhi method se kar sakte ho. Htaccess se best hai.
I searched a lot on google about enable gzip compression but I didn’t understand it, then I found your tips,it’s easy to understand and now I enable it,thanks for sharing this post its works for me.keep writing tips like this.
Your welcome @Asween Glad you like this post keep visiting.
Sir meri blog no1techguru.ml hai
Ye Blogger pe hai isne me Gzip Compression ko kaise Enable kar sakta hun
Agar aapka blog blogger par hai to apko Gzip compression enable karne ki jarurat nahi hai. Kyuki sabhi blogger blog me ye by default enable hota hai.
Thanks sir