Internet Cache Protocol (ICP)

Internet Cache Protocol (ICP) is arguably the most popular caching protocol. A major contributing factor to its popularity is its use by Squid (http://www.squid-cache.org/), one of the most common Web proxy caches in use.

ICP is defined in RFC 2186, “Internet Cache Protocol (ICP).” Another RFC of interest is RFC 2187, “Application of Internet Cache Protocol (ICP),” which explains how to apply ICP to hierarchical Web caching.

ICP is basically a lightweight protocol that gives peer caches a method of querying one another for a resource. Peer caches respond to these queries with either a HIT or a MISS denoting whether they possess a copy of the resource or not. This interaction is very similar to two people playing ...

Get HTTP Developer’s Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.