ReverseProxy v0.3.0 ReverseProxy.Cache

A basic caching layer for ReverseProxy.

Upstream content servers may be slow. SSL/TLS negotiation may be slow. Caching a response from the upstream increases the potential performance of ReverseProxy.

Summary

Types

Callback to retreive an upstream response

Functions

Entrypoint to serve content from the cache when available (cache hit) and from the upstream when not available (cache miss)

Types

callback()

Callback to retreive an upstream response

Functions

serve(conn, upstream)

Entrypoint to serve content from the cache when available (cache hit) and from the upstream when not available (cache miss).