SWR & Ingantaccen Tsarin Cache Control akan Netlify
Posted: Mon Dec 23, 2024 9:39 am
A yau muna fitar da sabbin fasalulluka waɗanda za su haɓaka ƙwarewar amfani da Netlify's Edge Caching tare da Ayyukan Netlify ko na baya mai ƙarfi na waje.
Dandalin mu yanzu yana goyan bayan kowane Cache-Controlumarni da Netlify-CDN-Cache-Controlumarni na al'ada a Edge, kuma mun ƙara cikakken goyan baya ga stale-while-revalidatema'auni, tare da share cache ta atomatik a duk lokacin da kuka tura.
A matsayin farkon dandamalin girgije na gaba-karshen zamani, ɗayan mahimman abubuwan ƙirƙira na Netlify shine haɗa CI/CD, Hosting da Bayarwa Edge cikin madaidaicin aiki guda ɗaya tare da juzu'in sifili daga lamba zuwa URL.
Mu ne farkon wanda ya fara bayyana caching bayanan lambar wayar hannu na kwanan nan da cache gabaɗaya ga masu haɓakawa, bisa ra'ayin samar da rukunin yanar gizo a matsayin kwangilar da koyaushe za ta gaya wa dandalinmu lokacin da wani abu ya canza kuma yakamata a soke shi.
Har zuwa yanzu, duk da haka, muna da ɗan ƙaramin tallafi don sarrafa halayen cache na gefen lokacin amfani da Ayyuka marasa Sabis ko lokacin yin wakilci daga gefenmu zuwa aikace-aikacen waje.
A yau, muna canza wancan kuma muna sanya Netlify mafi kyau a cikin aji don caching ayyuka masu ƙarfi tare da tsinkaya da haɗaɗɗen cache da sabuntawa.
Ta yaya waɗannan sabbin fasalolin caching gefen ke aiki?
Netlify yanzu yana goyan bayan Cache-Control, CDN-Cache-Controlda Netlify-CDN-Cache-Controlmasu kai, yana ba ku damar aika umarnin cache daban-daban zuwa burauzar mai amfani na ƙarshen ( Cache-Control), Netlify's Edge ( Netlify-CDN-Cache-Control), ko kowane ma'auni masu jituwa CDN zaune tsakanin Netlify da ƙarshen mai amfani ( CDN-Cache-Control).
Anan ga misalin Aiki wanda za'a adana shi akan nodes na gefen Netlify har sai sabon turawa ya gudana:
Lokacin da kuka sami dama ga wannan aikin akai-akai, zaku gan shi yana cache akan Netlify Edge. Idan ka sake aiki, cache ɗin za ta lalace kuma za a sake kiran aikin.
Kamar dai yadda dandalin yanar gizon da kansa ya inganta sosai a cikin shekaru da yawa da suka gabata ta hanyar aikin masu yin burauza, Netlify yana nufin tura ma'auni na abin da dandalin sabar uwar garken zai iya zama.
Mun yi imanin ƴan shekaru masu zuwa za su haifar da babban canji da ƙirƙira a cikin sararin UI na yanar gizo yayin da sabbin nau'ikan na'urori da aka gina don fasahar AR da AI ke fitowa. Hakanan, yayin da AI mai haɓakawa ke haɓaka samar da abun ciki, lamba, kadarorin fasaha da sauran nau'ikan furuci na ƙirƙira, zai canza ƙaƙƙarfan ƙaƙƙarfan UI na yanzu da aka gina a kusa.
Kasance da sauraron kwanaki uku masu zuwa na ƙaddamarwa! Sun fara ne kawai.
Fatan ganin ku duka mako mai zuwa a Shirya !
Dandalin mu yanzu yana goyan bayan kowane Cache-Controlumarni da Netlify-CDN-Cache-Controlumarni na al'ada a Edge, kuma mun ƙara cikakken goyan baya ga stale-while-revalidatema'auni, tare da share cache ta atomatik a duk lokacin da kuka tura.
A matsayin farkon dandamalin girgije na gaba-karshen zamani, ɗayan mahimman abubuwan ƙirƙira na Netlify shine haɗa CI/CD, Hosting da Bayarwa Edge cikin madaidaicin aiki guda ɗaya tare da juzu'in sifili daga lamba zuwa URL.
Mu ne farkon wanda ya fara bayyana caching bayanan lambar wayar hannu na kwanan nan da cache gabaɗaya ga masu haɓakawa, bisa ra'ayin samar da rukunin yanar gizo a matsayin kwangilar da koyaushe za ta gaya wa dandalinmu lokacin da wani abu ya canza kuma yakamata a soke shi.
Har zuwa yanzu, duk da haka, muna da ɗan ƙaramin tallafi don sarrafa halayen cache na gefen lokacin amfani da Ayyuka marasa Sabis ko lokacin yin wakilci daga gefenmu zuwa aikace-aikacen waje.
A yau, muna canza wancan kuma muna sanya Netlify mafi kyau a cikin aji don caching ayyuka masu ƙarfi tare da tsinkaya da haɗaɗɗen cache da sabuntawa.
Ta yaya waɗannan sabbin fasalolin caching gefen ke aiki?
Netlify yanzu yana goyan bayan Cache-Control, CDN-Cache-Controlda Netlify-CDN-Cache-Controlmasu kai, yana ba ku damar aika umarnin cache daban-daban zuwa burauzar mai amfani na ƙarshen ( Cache-Control), Netlify's Edge ( Netlify-CDN-Cache-Control), ko kowane ma'auni masu jituwa CDN zaune tsakanin Netlify da ƙarshen mai amfani ( CDN-Cache-Control).
Anan ga misalin Aiki wanda za'a adana shi akan nodes na gefen Netlify har sai sabon turawa ya gudana:
Lokacin da kuka sami dama ga wannan aikin akai-akai, zaku gan shi yana cache akan Netlify Edge. Idan ka sake aiki, cache ɗin za ta lalace kuma za a sake kiran aikin.
Kamar dai yadda dandalin yanar gizon da kansa ya inganta sosai a cikin shekaru da yawa da suka gabata ta hanyar aikin masu yin burauza, Netlify yana nufin tura ma'auni na abin da dandalin sabar uwar garken zai iya zama.
Mun yi imanin ƴan shekaru masu zuwa za su haifar da babban canji da ƙirƙira a cikin sararin UI na yanar gizo yayin da sabbin nau'ikan na'urori da aka gina don fasahar AR da AI ke fitowa. Hakanan, yayin da AI mai haɓakawa ke haɓaka samar da abun ciki, lamba, kadarorin fasaha da sauran nau'ikan furuci na ƙirƙira, zai canza ƙaƙƙarfan ƙaƙƙarfan UI na yanzu da aka gina a kusa.
Kasance da sauraron kwanaki uku masu zuwa na ƙaddamarwa! Sun fara ne kawai.
Fatan ganin ku duka mako mai zuwa a Shirya !