This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

CachingHttpHandler Pennington.Infrastructure

Caches GET responses from the in-process crawl in BuildHtmlCache so the disk-write pass and the search/llms.txt sidecars share one render per URL. Installed by HttpDispatcher as the outer handler over the TestServer/Kestrel client. Non-GET requests and the 404 sentinel pass straight through uncached.

Constructors

CachingHttpHandler

#
public CachingHttpHandler(BuildHtmlCache cache)

Initializes the handler over the shared cache.

Parameters

cache BuildHtmlCache

Pennington.Infrastructure.CachingHttpHandler

namespace Pennington.Infrastructure;

/// Caches GET responses from the in-process crawl in BuildHtmlCache so the disk-write pass and the search/llms.txt sidecars share one render per URL. Installed by HttpDispatcher as the outer handler over the TestServer/Kestrel client. Non-GET requests and the 404 sentinel pass straight through uncached.
public class CachingHttpHandler
{
    /// Initializes the handler over the shared cache.
    
public CachingHttpHandler(BuildHtmlCache cache)
; }