<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Cache on Ali's Engineering Notes</title><link>https://muhammadalics.github.io/tags/cache/</link><description>Recent content in Cache on Ali's Engineering Notes</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 06 Oct 2026 18:39:57 -0600</lastBuildDate><atom:link href="https://muhammadalics.github.io/tags/cache/index.xml" rel="self" type="application/rss+xml"/><item><title>Server-Side Caching Explained: Cache Hit, Miss, and Expiry</title><link>https://muhammadalics.github.io/posts/serverside-cache/</link><pubDate>Tue, 06 Oct 2026 18:39:57 -0600</pubDate><guid>https://muhammadalics.github.io/posts/serverside-cache/</guid><description>&lt;p&gt;Server side caching can be implemented via reverse proxy such as nginx. Caching allows the traffic to be served faster and also reduces the load on the app. In this post, I am going to demonstrate the server-side caching using a server and an nginx reverse proxy running locally.&lt;/p&gt;
&lt;p&gt;Lets talk about what cache miss and cache hit mean.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Cache Miss&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is when a reverse proxy receives a request and can&amp;rsquo;t find the response in the cache. In such cases, the request is forwarded to the origin server and reverse proxy stores the response in cache.&lt;/p&gt;</description></item></channel></rss>