Ukuhlolwa Kokucindezelwa Kwe-GZIP
Ungathola ukuthi ukuminyanisa kwe-GZIP kunikwe amandla kuwebhusayithi yakho ngokwenza ukuhlolwa kokuminyanisa kwe-GZIP. Kuyini ukucindezelwa kwe-GZIP? Thola lapha.
Yini i-GZIP?
I-GZIP (GNU zip) ifomethi yefayela, uhlelo lokusebenza lwesofthiwe olusetshenziselwa ukucindezelwa kwefayela nokuwohloka. Ukucindezelwa kwe-Gzip kunikwe amandla ohlangothini lweseva futhi kunikeza okunye ukwehliswa kosayizi we-html yakho, isitayela namafayela e-Javascript. Ukucindezelwa kwe-Gzip akusebenzi ezithombeni njengoba sezivele zicindezelwe ngokwehlukile. Amanye amafayela abonisa ukuncishiswa okucishe kube ngaphezu kuka-70% ngenxa yokucindezelwa kwe-Gzip.
Uma isiphequluli sewebhu sivakashela iwebhusayithi, sihlola ukuthi ingabe iseva yewebhu inikwe amandla i-GZIP ngokubheka isihloko sempendulo "sombhalo wekhodi: gzip". Uma unhlokweni utholwa, uzonikezela ngamafayela acindezelwe namancane. Uma kungenjalo, inciphisa amafayela angacindezelwanga. Uma ungenayo i-GZIP enikwe amandla, cishe uzobona izexwayiso namaphutha kumathuluzi okuhlola isivinini njenge-Google PageSpeed Insights ne-GTMetrix. Njengoba isivinini sesayithi siyisici esibalulekile se-SEO namuhla, kuyasiza kakhulu ukunika amandla ukucindezelwa kwe-Gzip kumasayithi akho e-WordPress.
Kuyini ukucindezelwa kwe-GZIP?
Ukucindezela kwe-Gzip; Kuthinta ijubane lewebhusayithi ngakho-ke kungenye yezimo lapho izinjini zokusesha nazo zizwela. Uma ukucindezelwa kwe-gzip kwenziwa, isivinini sewebhusayithi siyakhula. Umehluko omkhulu ungabonakala uma kuqhathaniswa isivinini ngaphambi kokuvula ukuminyanisa kwe-gzip nesivinini ngemva kokwenziwa. Kanye nokunciphisa usayizi wekhasi, futhi kwandisa ukusebenza kwalo. Kumasayithi lapho ukucindezelwa kwe-gzip kunganikwanga amandla, amaphutha angenzeka ekuhlolweni kwesivinini okwenziwa ngochwepheshe be-SEO. Kungakho ukunika amandla ukucindezelwa kwe-gzip kuba isibopho kuwo wonke amasayithi. Ngemva kokunika amandla ukucindezelwa kwe-gzip, ingabhekwa ngamathuluzi okuhlola ukuthi ukucindezela kuyasebenza noma cha.
Ukubheka incazelo ye-gzip compression; Yigama elinikezwe inqubo yokunciphisa usayizi wamakhasi kuseva yewebhu ngaphambi kokuthi athunyelwe esipheqululini sesivakashi. Inezinzuzo ezinjengokugcina umkhawulokudonsa kanye nokulayisha ngokushesha nokubuka amakhasi. Amakhasi esiphequluli sewebhu yesivakashi avuleka ngokuzenzakalelayo, kuyilapho ukuminyanisa nokuwohloka kwenzeka ngengxenyana nje yesekhondi ngalesi sikhathi.
Yenzani ukucindezelwa kwe-gzip?
Ukubheka inhloso yokucindezelwa kwe-gzip; Kuwukusiza ukunciphisa isikhathi sokulayisha sesayithi ngokunciphisa ifayela. Uma isivakashi sifuna ukungena kuwebhusayithi, isicelo sithunyelwa kuseva ukuze ifayela eliceliwe likwazi ukubuyiswa. Uma usayizi wamafayela aceliwe umkhulu, kuthatha isikhathi eside ukulayisha amafayela. Ukuze wehlise lesi sikhathi, amakhasi ewebhu kanye ne-CSS kufanele kucindezelwe nge-gzip ngaphambi kokuthi kuthunyelwe esipheqululini. Lapho isivinini sokulayisha samakhasi sikhuphuka ngokucindezelwa kwe-gzip, lokhu kuphinde kunikeze inzuzo ngokuya nge-SEO. Ukucindezelwa kwe-Gzip kumasayithi e-WordPress kuba yisidingo.
Njengoba nje abantu bekhetha ukucindezela leli fayela lapho befuna ukuthumela ifayela komunye umuntu; Isizathu sokucindezelwa kwe-gzip siyefana. Umehluko omkhulu phakathi kwalokhu okubili; Uma inqubo yokuminyanisa i-gzip yenziwa, lokhu kudlulisa phakathi kweseva nesiphequluli kwenzeka ngokuzenzakalelayo.
Yiziphi iziphequluli ezisekela i-GZIP?
Abanikazi besayithi akudingeki bakhathazeke ngosekelo lwesiphequluli se-Gzip. Isekelwe iningi leziphequluli ngokwesilinganiso seminyaka eyi-17. Nazi iziphequluli nokuthi ziqale nini ukusekela ukucindezelwa kwe-gzip:
- I-Internet Explorer 5.5+ ibihlinzeka ngosekelo lwe-gzip kusukela ngoJulayi 2000.
- I-Opera 5+ isiphequluli esisekela i-gzip kusukela ngoJuni 2000.
- Kusukela ngo-Okthoba 2001 iFirefox 0.9.5+ ibe nokusekelwa kwe-gzip.
- Ngemva nje kokuthi ikhishwe ngo-2008, i-Chrome yafakwa kuziphequluli ezisekela i-gzip.
- Ngemuva kokwethulwa okokuqala ngo-2003, iSafari isiphinde yaba ngesinye seziphequluli ezisekela i-gzip.
Ungacindezela kanjani i-Gzip?
Uma kudingekile ukuchaza kafushane i-logic ye-gzip compression; Iqinisekisa ukuthi amayunithi ezinhlamvu afanayo ayatholakala efayeleni lombhalo, futhi ngokushintshwa kwesikhashana kwalezi zinhlamvu ezifanayo, kuba nokuncipha kwesamba sikasayizi wefayela. Ikakhulukazi kumafayela e-HTML ne-CSS, njengoba inani lombhalo ophindaphindiwe nezikhala liphakeme kunezinye izinhlobo zamafayela, izinzuzo eziningi zinikezwa uma ukucindezela kwe-gzip kusetshenziswa kulezi zinhlobo zamafayela. Kungenzeka ukucindezela ikhasi nosayizi we-CSS phakathi kuka-60% no-70% nge-gzip. Ngale nqubo, nakuba isayithi lishesha, i-CPU esetshenzisiwe ingaphezulu. Ngakho-ke, abanikazi besayithi kufanele bahlole futhi baqinisekise ukuthi ukusetshenziswa kwe-CPU yabo kuzinzile ngaphambi kokuvumela ukucindezelwa kwe-gzip.
Ungavumela kanjani ukucindezelwa kwe-gzip?
I-Mod_gzip noma i-mod_deflate ingasetshenziswa ukunika amandla ukucindezelwa kwe-gzip. Uma kunconywa phakathi kwalezi zindlela ezimbili; mod_deflate. Ukucindezela nge-mod_deflate kukhethwa kakhulu ngoba kune-algorithm engcono yokuguqula futhi ihambisana nenguqulo ye-apache ephakeme.
Nazi izinketho zokuvumela ukucindezelwa kwe-gzip:
- Kungenzeka ukunika amandla ukucindezelwa kwe-gzip ngokuhlela ifayela le-.htaccess.
- Ukucindezela kwe-Gzip kungavulwa ngokufaka ama-plugin wezinhlelo zokuphatha okuqukethwe.
- Kuyenzeka ukuthi labo abanelayisensi ye-cPanel bavumele ukucindezelwa kwe-gzip.
- Ngokusingathwa okusekelwe ku-Windows, ukucindezelwa kwe-gzip kungavulwa.
Ukucindezelwa kwe-GZIP nge-htaccess
Ukuze unike amandla ukucindezelwa kwe-gzip ngokulungisa ifayela le-.htaccess, ikhodi idinga ukwengezwa kufayela elithi .htaccess. Kunconywa ukusebenzisa i-mod_deflate lapho wengeza ikhodi. Nokho, uma iseva yomnikazi wesayithi ingasekeli i-mod_deflate; Ukucindezelwa kwe-Gzip kungaphinda kunikwe amandla nge-mod_gzip. Ngemuva kokuthi ikhodi yengezwe, izinguquko kufanele zilondolozwe ukuze ukucindezelwa kwe-gzip kunikwe amandla. Ezimeni lapho ezinye izinkampani ezibamba iqhaza zingakuvumeli ukuminyanisa kwe-gzip kusetshenziswa iphaneli, kuyakhethwa ukunika amandla ukucindezela kwe-gzip ngokuhlela ifayela le-.htaccess.
Ukucindezelwa kwe-GZIP nge-cPanel
Ukuze unike amandla ukucindezelwa kwe-gzip nge-cPanel, umnikazi wesayithi kufanele abe nelayisensi ye-cPanel. Umsebenzisi kufanele angene kuphaneli yokusingatha esebenzisa igama lomsebenzisi nephasiwedi yakhe. Ukwenza kusebenze kungaqedelwa esigabeni sokwenza kusebenze i-gzip ngezansi kwe-akhawunti yokusingatha yomnikazi wesayithi ngesigaba esithi Lungiselela Iwebhusayithi ngaphansi kwesihloko seSoftware/Amasevisi. Okokuqala, Cindezela Konke Okuqukethwe bese izinkinobho Zokuvuselela Izilungiselelo kufanele zichofozwe, ngokulandelana.
Ukucindezelwa kwe-GZIP ngeseva yeWindows
Abasebenzisi beseva yeWindows kufanele basebenzise umugqa womyalo ukuze banike amandla ukucindezelwa kwe-gzip. Angakwazi ukunika amandla ukucindezela kwe-http kokuqukethwe okumile nokuguquguqukayo ngamakhodi alandelayo:
- Okuqukethwe okumile: i-appcmd setha ukumisa/isigaba:urlCompression/doStaticCompression:Iqiniso
- Okuqukethwe okunamandla: i-appcmd setha ukumisa/isigaba:urlCompression/doDynamicCompression:Iqiniso
Ungawenza kanjani ukuhlolwa kokucindezela kwe-gzip?
Kunamanye amathuluzi angasetshenziswa ukuhlola ukucindezelwa kwe-gzip. Uma lawa mathuluzi esetshenziswa, imigqa engacindezelwa ifakwa ohlwini ngayinye ngayinye ngaphambi kokunika amandla ukucindezelwa kwe-gzip. Nokho, uma amathuluzi okuhlola esetshenziswa ngemva kokunika amandla ukuminyanisa kwe-gzip, kunesaziso esikrinini sokuthi akukho ukuminyanisa okwengeziwe okufanele kwenziwe.
Ungathola ku-inthanethi kuwebhusayithi ukuthi ukuminyanisa kwe-GZIP kunikwe amandla ngethuluzi "lokuhlola ukucindezela kwe-Gzip", isevisi yamahhala ye-Softmedal. Ngaphezu kokuthi kulula futhi kuyashesha ukuyisebenzisa, iphinda ibonise imiphumela enemininingwane kubanikazi besayithi. Ngemuva kokuthi isixhumanisi sesayithi sibhalwe ekhelini elifanele, ukucindezelwa kwe-gzip kungahlolwa uma inkinobho yokuhlola ichofozwa.