br-etag-cache

Community

HTTP-level read endpoint caching with ETag.

AuthorLonsdale201
Version1.0.0
Installs0

System Documentation

What problem does it solve?

HTTP GET/HEAD endpoints often re-emit identical responses. This Skill provides HTTP-level caching by emitting ETag headers and validating If-None-Match, enabling conditional requests and reducing bandwidth.

Core Features & Use Cases

  • Emits an ETag header for 2xx responses on GET/HEAD endpoints and returns 304 when If-None-Match matches.
  • Supports a customizable etagResolver to compute a cheap hash from invariant data (e.g., last-modified timestamp, ID).
  • Optional weak validators (W/"hash") to permit semantic equivalence and safe caching with client CDNs.
  • Can be paired with Cache-Control headers to enable true client/CDN caching for read endpoints.

Quick Start

Attach the ETag middleware to GET/HEAD routes and optionally provide a cheap etagResolver or Cache-Control headers to enable client/CDN caching.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: br-etag-cache
Download link: https://github.com/Lonsdale201/wp-agent-skills/archive/main.zip#br-etag-cache

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.