Gwajin Matsawa GZIP
Kuna iya gano ko an kunna matsawar GZIP akan gidan yanar gizon ku ta yin gwajin matsawa na GZIP. Menene matsi na GZIP? Nemo a nan.
Menene GZIP?
GZIP (GNU zip) tsari ne na fayil, aikace-aikacen software da ake amfani da shi don matsawa fayil da ragewa. An kunna matsawar Gzip a gefen uwar garken kuma yana ba da ƙarin raguwa a girman html, salon ku da fayilolin Javascript. Matsawar Gzip baya aiki akan hotuna kamar yadda aka riga aka matsa su daban. Wasu fayilolin suna nuna raguwa kusan sama da 70% godiya ga matsawar Gzip.
Lokacin da mai binciken gidan yanar gizo ya ziyarci gidan yanar gizo, yana bincika ko sabar gidan yanar gizon GZIP ce ke kunna ta hanyar neman “content encoding: gzip” header martani. Idan an gano kan kai, zai yi amfani da matsi da ƙananan fayiloli. In ba haka ba, yana sauke fayilolin da ba a matsawa ba. Idan ba ku kunna GZIP ba, kuna iya ganin gargaɗi da kurakurai a cikin kayan aikin gwajin sauri kamar Google PageSpeed Insights da GTMetrix. Tunda saurin rukunin yanar gizo muhimmin abu ne ga SEO a yau, yana da amfani musamman don ba da damar matsawa Gzip don rukunin yanar gizonku na WordPress.
Menene matsi na GZIP?
Gzip matsawa; Yana rinjayar saurin gidan yanar gizon sabili da haka yana daya daga cikin yanayin da injunan bincike ma suna da hankali. Lokacin da aka yi matsawar gzip, saurin gidan yanar gizon yana ƙaruwa. Ana iya ganin babban bambanci yayin kwatanta saurin kafin kunna gzip matsawa tare da saurin bayan an yi shi. Tare da rage girman shafin, yana kuma ƙara yawan aiki. A kan rukunin yanar gizon da ba a kunna matsawar gzip ba, kurakurai na iya faruwa a cikin gwajin saurin da masana SEO suka yi. Shi ya sa kunna gzip matsawa ya zama wajibi ga duk shafuka. Bayan kunna gzip matsawa, ana iya duba shi tare da kayan aikin gwaji ko matsawar tana aiki ko a'a.
Kallon ma'anar gzip matsawa; Sunan ne da aka ba wa tsarin rage girman shafukan da ke kan sabar gidan yanar gizo kafin a aika su zuwa mashigin mai ziyara. Yana da abũbuwan amfãni kamar ceton bandwidth da sauri loading da duban shafuka. Shafukan burauzar yanar gizo na masu ziyara suna buɗewa ta atomatik, yayin da matsawa da ɓacin rai ke faruwa a cikin juzu'in daƙiƙa kaɗan a wannan lokacin.
Menene matsawar gzip ke yi?
Duban manufar gzip matsawa; Yana da don taimakawa rage lokacin lodawa na rukunin yanar gizon ta hanyar rage fayil ɗin. Lokacin da baƙo yana son shigar da gidan yanar gizon, ana aika buƙatu zuwa uwar garken domin a iya dawo da fayil ɗin da aka nema. Girman girman fayilolin da ake buƙata, tsawon lokacin da ake ɗauka don loda fayilolin. Domin rage wannan lokacin, shafukan yanar gizo da CSS dole ne a matsa su gzip kafin a aika su zuwa mai bincike. Lokacin da saurin lodawa na shafukan ya karu tare da matsawa gzip, wannan kuma yana ba da fa'ida dangane da SEO. Matsawar Gzip akan rukunin yanar gizon WordPress yana zama larura.
Kamar yadda mutane suka fi son damfara wannan fayil lokacin da suke son aika fayil zuwa wani; Dalilin matsawa gzip iri ɗaya ne. Babban bambancin da ke tsakanin su shine; Lokacin da aka aiwatar da tsarin matsawa gzip, wannan canja wuri tsakanin uwar garken da mai binciken yana faruwa ta atomatik.
Wadanne masu bincike ne ke goyan bayan GZIP?
Masu rukunin yanar gizon basa buƙatar damuwa game da tallafin mai lilo na Gzip. An sami goyan bayan mafi yawan masu bincike na tsawon shekaru 17. Anan akwai masu binciken kuma lokacin da suka fara tallafawa matsawa gzip:
- Internet Explorer 5.5+ yana ba da tallafin gzip tun Yuli 2000.
- Opera 5+ browser ne mai goyan bayan gzip tun watan Yuni 2000.
- Tun Oktoba 2001 Firefox 0.9.5+ ya sami goyan bayan gzip.
- Dama bayan an sake shi a cikin 2008, Chrome an haɗa shi a cikin masu binciken da ke goyan bayan gzip.
- Bayan kaddamar da shi na farko a cikin 2003, Safari kuma ya zama ɗaya daga cikin masu binciken da ke goyan bayan gzip.
Yadda za a damfara Gzip?
Idan ya zama dole a taƙaice bayanin ma'anar gzip matsawa; Yana tabbatar da cewa ana samun irin waɗannan kirtani a cikin fayil ɗin rubutu, kuma tare da maye gurbin ɗan lokaci na waɗannan igiyoyi masu kama da juna, ana samun raguwa a cikin jimlar girman fayil ɗin. Musamman a cikin fayilolin HTML da CSS, tun da adadin maimaita rubutu da sarari ya fi sauran nau'ikan fayil ɗin, ana ba da ƙarin fa'idodi yayin amfani da matsawa gzip a cikin waɗannan nau'ikan fayil ɗin. Yana yiwuwa a matsa shafi da girman CSS tsakanin 60% da 70% tare da gzip. Tare da wannan tsari, kodayake shafin yana da sauri, CPU da aka yi amfani da shi ya fi yawa. Don haka, masu rukunin yanar gizon yakamata su duba kuma su tabbata cewa amfanin CPU ɗin su ya tabbata kafin kunna gzip matsawa.
Yadda za a kunna gzip matsawa?
Ana iya amfani da Mod_gzip ko mod_deflate don kunna gzip matsawa. Idan an ba da shawarar tsakanin hanyoyin biyu; mod_deflate. Matsawa tare da mod_deflate an fi so saboda yana da mafi kyawun juzu'in juzu'i kuma yana dacewa da sigar apache mafi girma.
Anan akwai zaɓuɓɓukan damar matsawa gzip:
- Yana yiwuwa a kunna gzip matsawa ta hanyar gyara fayil ɗin .htaccess.
- Ana iya kunna matsawar Gzip ta hanyar shigar da plugins don tsarin sarrafa abun ciki.
- Yana yiwuwa ga waɗanda ke da lasisin cPanel don ba da damar matsawa gzip.
- Tare da haɗin gwiwar tushen Windows, za a iya kunna matsawa gzip.
GZIP matsawa tare da htaccess
Don kunna matsawar gzip ta hanyar gyara fayil ɗin .htaccess, ana buƙatar ƙara lamba zuwa fayil ɗin .htaccess. Ana ba da shawarar yin amfani da mod_deflate lokacin ƙara lamba. Koyaya, idan uwar garken mai gidan baya goyan bayan mod_deflate; Hakanan ana iya kunna matsawar Gzip tare da mod_gzip. Bayan an ƙara lambar, dole ne a adana canje-canjen don kunna gzip ɗin. A cikin lokuta inda wasu kamfanoni masu ba da izini ba su yarda gzip matsawa ta amfani da panel, an fi so don kunna gzip matsawa ta hanyar gyara fayil ɗin .htaccess.
GZIP matsawa tare da cPanel
Don kunna matsawar gzip tare da cPanel, mai gidan yanar gizon dole ne ya sami lasisin cPanel. Dole ne mai amfani ya shiga cikin rukunin yanar gizon ta amfani da sunan mai amfani da kalmar wucewa. Ana iya kammala kunnawa daga sashin kunnawa gzip a kasan asusun mai karɓar rukunin yanar gizon ta sashin Inganta Yanar Gizon a ƙarƙashin taken Software/Sabis. Da farko, Matsa Duk Abun ciki sannan a danna Maɓallin Saitunan Saituna, bi da bi.
Matsawar GZIP tare da uwar garken Windows
Masu amfani da uwar garken Windows dole ne su yi amfani da layin umarni don ba da damar matsawa gzip. Za su iya ba da damar matsawa http don madaidaicin abun ciki mai ƙarfi tare da lambobi masu zuwa:
- A tsaye abun ciki: appcmd saitin saitin / sashe: urlCompression / doStaticCompression: Gaskiya
- Abun ciki mai ƙarfi: appcmd saita saitin / sashe: urlCompression / doDynamicCompression: Gaskiya
Yadda ake yin gwajin matsawa gzip?
Akwai wasu kayan aikin da za a iya amfani da su don gwada matsawar gzip. Lokacin da aka yi amfani da waɗannan kayan aikin, ana jera layin da za a iya matsawa ɗaya bayan ɗaya kafin kunna gzip ɗin. Koyaya, lokacin da aka yi amfani da kayan aikin gwaji bayan kunna gzip matsawa, akwai sanarwa akan allon cewa babu ƙarin matsawa da za a yi.
Kuna iya gano kan layi akan gidan yanar gizon ko an kunna matsawar GZIP tare da kayan aikin "Gzip compression test", sabis na Softmedal kyauta. Baya ga kasancewa mai sauƙi da sauri don amfani, yana kuma nuna cikakken sakamako ga masu rukunin yanar gizon. Bayan an rubuta hanyar haɗin yanar gizon zuwa adireshin da ya dace, za a iya gwada matsawar gzip lokacin da aka danna maɓallin rajistan.