Is Cache-Control Header for Client or Server?

Image is taken from eBay

Where or how do we handle the caching?

  1. Client-Side Caching
    Browsers cache the data in its local storage
  2. Intermediary Caching
    Intermediaries are something between client and server (RFC7230) like proxy or gateway. Cache mechanism is handled by Nginx, Varnish or another caching-proxy.
  3. Server-Side Caching
    Backends cache the database inquiry or communication to some vendors.

Can we control it?

  • Modify the expiration time
  • Decide to store/cache or not
  • Revalidate/reload the data

Conditional Request

Learn More

--

--

--

Technology to write, life to grateful. Overthinking is good, only if it has the output. Fundamental is the main concern.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Host a WordPress site for free using Google Cloud Platform and Cloudflare

Rails User Session Handling using Redis

視覺圖公開!hololive活動「hololive SUPER EXPO 2022」和「hololive 3rd fes. Link Your Wish」追加情報發表

Illustration of Agile methodology

Building Actuarial Functions in Python

Journey to start learning more!!👨‍💻

Introducing My New YouTube Channel — The Dev Doctor

OttoPunks NFT Project

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Iman Tung

Iman Tung

Technology to write, life to grateful. Overthinking is good, only if it has the output. Fundamental is the main concern.

More from Medium

What are NoSQL databases and when to use them?

[React] Routing to an Error Page with axios interceptors

General & Domain Helpers

Single Responsibility & Domain Design: Action and Agent