Skip to content

Instantly share code, notes, and snippets.

View ananner's full-sized avatar

Aman Nanner ananner

View GitHub Profile

Edge Caching for Pages with Dynamic Content

One of the basic requirements for a fast loading website is to have a web server that quickly responds to requests. While speeding up the origin response can directly increase business value, it can be quite challenging. In many cases it can be a lot easier to utilize caching in order to avoid the complexity of optimizing the server response time. However, caching a dynamic page is not a straightforward process.

How does a Browser Load a Page? Again!

No single blog post can really comprehensively cover what happens behind the scenes when loading a web page: it is a mind dazzling process. Instead we will focus on the part where the browser is requesting the HTML source content from a server in order to load the page. We will also assume a simple single web server with a database.