[{"data":1,"prerenderedAt":164},["ShallowReactive",2],{"term-c\u002Fcloudfront":3,"related-c\u002Fcloudfront":141},{"id":4,"title":5,"acronym":6,"body":7,"category":119,"description":120,"difficulty":121,"extension":122,"letter":123,"meta":124,"navigation":125,"path":126,"related":127,"seo":135,"sitemap":136,"stem":139,"subcategory":6,"__hash__":140},"terms\u002Fterms\u002Fc\u002Fcloudfront.md","CloudFront",null,{"type":8,"value":9,"toc":113},"minimark",[10,15,19,23,26,30,102,106,109],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"CloudFront is AWS's CDN — it copies your files to data centers all over the world so users get content from a server near them instead of one far away. A user in Tokyo gets your images from Tokyo, not Virginia. It makes your site faster and cheaper to serve at scale.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Amazon CloudFront is a CDN that delivers content from 400+ edge locations globally. It caches static assets, streams video, and can run Lambda@Edge and CloudFront Functions for dynamic logic at the edge. Integrates natively with S3, EC2, ALB, and API Gateway.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Invalidate CloudFront cache after deployment\naws cloudfront create-invalidation \\\n  --distribution-id EDFDVBD6EXAMPLE \\\n  --paths \"\u002Fstatic\u002F*\" \"\u002Findex.html\"\n","bash","",[38,39,40,49,67,78],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sHwdD","# Invalidate CloudFront cache after deployment\n",[41,50,52,56,60,63],{"class":43,"line":51},2,[41,53,55],{"class":54},"sBMFI","aws",[41,57,59],{"class":58},"sfazB"," cloudfront",[41,61,62],{"class":58}," create-invalidation",[41,64,66],{"class":65},"sTEyZ"," \\\n",[41,68,70,73,76],{"class":43,"line":69},3,[41,71,72],{"class":58},"  --distribution-id",[41,74,75],{"class":58}," EDFDVBD6EXAMPLE",[41,77,66],{"class":65},[41,79,81,84,88,91,94,96,99],{"class":43,"line":80},4,[41,82,83],{"class":58},"  --paths",[41,85,87],{"class":86},"sMK4o"," \"",[41,89,90],{"class":58},"\u002Fstatic\u002F*",[41,92,93],{"class":86},"\"",[41,95,87],{"class":86},[41,97,98],{"class":58},"\u002Findex.html",[41,100,101],{"class":86},"\"\n",[11,103,105],{"id":104},"when-youll-hear-this","When You'll Hear This",[16,107,108],{},"\"We serve the S3 bucket through CloudFront for global performance.\" \u002F \"After deployment, remember to invalidate the CloudFront cache.\"",[110,111,112],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":51,"depth":51,"links":114},[115,116,117,118],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":104,"depth":51,"text":105},"cloud","CloudFront is AWS's CDN — it copies your files to data centers all over the world so users get content from a server near them instead of one far away.","intermediate","md","c",{},true,"\u002Fterms\u002Fc\u002Fcloudfront",[128,129,130,131,132,133,134],"CDN","S3","AWS","Edge Computing","Edge Function","Latency","Bandwidth",{"title":5,"description":120},{"changefreq":137,"priority":138},"weekly",0.7,"terms\u002Fc\u002Fcloudfront","jG3en6m6pqOOs_xN_2lxehhupp-OvT712YCi06dN5p4",[142,147,151,155,158,161],{"title":130,"path":143,"acronym":144,"category":119,"difficulty":145,"description":146},"\u002Fterms\u002Fa\u002Faws","Amazon Web Services","beginner","AWS is like a giant magical warehouse where you can rent computers, storage, databases, and basically anything tech-related — by the minute.",{"title":134,"path":148,"acronym":6,"category":149,"difficulty":145,"description":150},"\u002Fterms\u002Fb\u002Fbandwidth","networking","Bandwidth is how wide your internet pipe is — how much data can flow through per second. A narrow pipe means slow speeds, a wide pipe means fast speeds.",{"title":128,"path":152,"acronym":153,"category":119,"difficulty":145,"description":154},"\u002Fterms\u002Fc\u002Fcdn","Content Delivery Network","A CDN is a network of servers spread around the world that store copies of your files.",{"title":131,"path":156,"acronym":6,"category":119,"difficulty":121,"description":157},"\u002Fterms\u002Fe\u002Fedge-computing","Your server is in Virginia. Your user is in Tokyo. Every request travels 10,000 km and back.",{"title":132,"path":159,"acronym":6,"category":119,"difficulty":145,"description":160},"\u002Fterms\u002Fe\u002Fedge-function","Edge functions run your code at the CDN edge — meaning close to the user, not in some faraway data center.",{"title":133,"path":162,"acronym":6,"category":149,"difficulty":145,"description":163},"\u002Fterms\u002Fl\u002Flatency","Latency is the delay before data starts moving — the time it takes for a request to go from your device to the server and back.",1776518266276]