CloudFront cache li cas?
CloudFront cache li cas?

Video: CloudFront cache li cas?

Video: CloudFront cache li cas?
Video: AWS Tutorial - Amazon CloudFront - Working with Policies 2024, Kaum ib hlis
Anonim

Yog hais tias cov ntaub ntawv yog nyob rau hauv lub cache , CloudFront xa cov ntaub ntawv mus rau POP uas tau thov lawv. Sai li thawj byte tuaj txog ntawm ntug cheeb tsam cache qhov chaw, CloudFront pib xa cov ntaub ntawv mus rau tus neeg siv. CloudFront kuj ntxiv cov ntaub ntawv rau lub cache nyob rau hauv POP rau lwm zaus ib tug neeg thov cov ntaub ntawv.

Hais txog qhov no, CloudFront cache ua haujlwm li cas?

Amazon CloudFront siv tus qauv cache tswj headers koj teem rau koj cov ntaub ntawv kom paub cov ntsiab lus zoo li qub thiab dynamic. Xa tag nrho koj cov ntsiab lus siv ib qho Amazon CloudFront kev faib tawm pab koj kom paub tseeb tias kev ua tau zoo ntawm kev ua tau zoo yog siv rau koj lub vev xaib tag nrho lossis daim ntawv thov web.

Tsis tas li ntawd, lub hom phiaj ntawm CloudFront yog dab tsi? Amazon CloudFront yog cov ntsiab lus xa tawm network (CDN) muab los ntawm Amazon Web Services. Cov ntsiab lus xa tawm muab kev sib txuas thoob ntiaj teb ntawm cov npe servers uas cov ntsiab lus cache, xws li cov yeeb yaj kiab hauv web lossis lwm cov xov xwm loj, ntau hauv zos rau cov neeg siv khoom, yog li txhim kho kev nkag mus ceev rau rub tawm cov ntsiab lus.

Kuj paub yog, ntev npaum li cas CloudFront cache siv sijhawm?

Koj tuaj yeem ntxiv Cache-Control lossis Expires headers rau koj cov khoom los hloov lub sijhawm uas CloudFront khaws cov khoom hauv ntug caches ua ntej nws xa mus rau lwm qhov kev thov rau lub hauv paus chiv keeb. Lub sijhawm tsawg kawg yog 3600 sec (ib teev). Yog tias koj qhia tus nqi qis dua, CloudFront siv 3600 sec.

Dab tsi yog qhov txiaj ntsig tseem ceeb ntawm CloudFront?

Amazon CloudFront siv raws li lub ntiaj teb cov ntsiab lus xa khoom network kev pabcuam. The AWS CloudFront xa cov ntaub ntawv, yeeb yaj duab, daim ntawv thov, thiab APIs rau cov neeg saib nrog qis latency thiab siab hloov pauv.

Pom zoo: