Yuav Ua Li Cas Pab Kom Gzip Compression

Cov txheej txheem:

Yuav Ua Li Cas Pab Kom Gzip Compression
Yuav Ua Li Cas Pab Kom Gzip Compression

Video: Yuav Ua Li Cas Pab Kom Gzip Compression

Video: Yuav Ua Li Cas Pab Kom Gzip Compression
Video: How to Add HTML Compression /GZIP 2024, Kaum ib hlis
Anonim

Gzip compression tuaj yeem txo cov ntaub ntawv xa mus rau tus neeg siv thaum thauj khoom nplooj ntawv hauv Is Taws Nem. Qhov no ua rau nws muaj peev xwm ua kom nce qhov ceev nrawm ntawm lub xaib qhov tsos hauv lub browser window vim qhov tshwj xeeb dynamic compression algorithm siv.

Yuav ua li cas pab kom gzip compression
Yuav ua li cas pab kom gzip compression

Nws yog qhov tsim nyog

  • - Hosting uas txhawb php.ini kho kom raug;
  • - Tus thov kev pabcuam FTP.

Cov Lus Qhia

Kauj ruam 1

Txhawm rau kom Gzip compression hom, koj yuav tsum siv qhov kev qhia tshwj xeeb hauv php.ini. Cov ntaub ntawv no tso cai rau koj los kho cov kev coj ua ntawm cov ntawv sau hauv PHP lub hom lus programming, uas ua rau nws muaj peev xwm ua tau zoo hauv kev ua haujlwm ntawm txhua qhov haujlwm uas khiav ntawm lub server. Koj tuaj yeem qhib php.ini siv ib qho xov xwm kho kom raug. Cov chaw ntawm cov ntawv yog nyob ntawm qhov chaw ntawm koj lub koom haum hosting thiab software siv ntawm cov servers.

Kauj ruam 2

Siv tus thawj tswj hwm FTP mus rau koj lub vev xaib lossis siv lub vaj huam sib luag rau hosting cov chaw tswj hwm. Qee lub tuam txhab cia cov neeg siv kho cov ntaub ntawv teeb tsa ncaj qha los ntawm lub qhov rais khoos phis tawm ua qhov chaw tswj hwm. Yog tias cov ntawv qhia ua zaub mov rau kev hloov php.ini ploj lawm, thiab koj tsis tuaj yeem nrhiav qhov chaw nyob hauv cov ntaub ntawv thaum tshawb xyuas lub xaib tus qauv ntawm FTP, koj lub hosting yog neeg xiam oob khab.

Kauj ruam 3

Yog tias koj paub tias daim ntawv tshaj tawm tso cai rau kev txhim kho php.ini, tab sis koj tsis tuaj yeem nrhiav cov ntaub ntawv no, tsim cov ntaub ntawv info.php thiab sau cov code: Txuag cov kev hloov pauv ntawm cov ntaub ntawv thiab xa mus rau tus neeg rau zaub mov, thiab qhia kom meej txoj hauv kev hauv browser chaw nyob bar (piv txwv li,

Kauj ruam 4

Cov nplooj ntawv uas tshwm yuav tshwm qhov PHP nqis. Qhov chaw nyob php.ini yuav muab sau cia rau hauv Loaded Cov Ntaub Ntawv Khoos Npe.

Kauj ruam 5

Rub tawm cov ntaub ntawv teeb tsa mus rau koj lub khoos phis tawm thiab qhib nws nrog txhua cov ntawv kho. Txhawm rau ua li no, nyem txoj nyem rau ntawm daim ntawv thiab xaiv "Qhib nrog".

Kauj Ruam 6

Hauv lub qhov rai uas tshwm, nrhiav cov kab hauv qab no: zlib.output_compression = Off Hloov nws cov nqi rau ntawm: zlib.output_compression = On

Kauj Ruam 7

Txuag koj hloov pauv thiab xa cov ntaub ntawv siv tus neeg siv FTP rov qab rau tus neeg rau zaub mov, hloov chaw. Gzip compression siv tau.

Kauj ruam 8

Nkag mus rau lub xaib thiab ntsuas qhov haujlwm ua haujlwm hla txhua qhov sib txawv. Yog tias koj muaj teeb meem thauj khoom nplooj, Gzip yuav tsum tsis taus.

Pom zoo: