Skip to main content

Installable ADR and SPEC extension pack for HTTP caching and freshness governance.

Project description

cache-freshness-governance-pack

PyPI version Downloads Hits Python versions License CI

GitHub repo

cache-freshness-governance-pack is an SSOT Registry pack for HTTP caching, freshness, validators, cache directives, stale response behavior, targeted cache policy, and CDN-facing cache governance.

It gives product, platform, reliability, and edge-delivery teams a shared set of Architecture Decision Records (ADRs) and Specifications (SPECs) for cache behavior. Centralizing these requirements lets teams apply the same freshness and caching decisions across many services, APIs, sites, and CDNs while keeping local implementation work traceable to reviewed standards.

What Is An SSOT Registry Pack?

An SSOT Registry pack is an installable package of governed ADRs and SPECs for ssot-registry. The pack supplies reusable decision and requirement documents. ssot-registry applies those documents to a project registry so teams can trace product requirements from decision, to specification, to implementation, to tests and release evidence.

This makes governance portable. A project can adopt the pack, synchronize the documents, list the active requirements, and connect local features or tests to the shared IDs.

Why This Pack Exists

Caching looks simple until products need predictable freshness, validator behavior, stale response policy, CDN-specific directives, cache observability, and consistent release review. The same Cache-Control or ETag mistake can create stale pages, overloaded origins, broken rollback paths, misleading CDN behavior, and confusing customer experiences.

This pack helps teams:

  • apply reviewed HTTP caching and freshness requirements across projects
  • align origin, shared cache, browser, and CDN behavior around the same governed IDs
  • turn RFC and IETF review into reusable ADRs and SPECs
  • connect cache policy decisions to implementation, tests, and release evidence
  • make edge-delivery reviews more consistent for APIs, web apps, static assets, and content platforms

Domain Focus

The pack focuses on product and platform domains where cache behavior affects correctness, performance, reliability, and user trust:

  • HTTP cache policy for sites, APIs, and service responses
  • freshness calculation, max-age policy, and expiry behavior
  • validators such as ETag, Last-Modified, and conditional requests
  • Cache-Control, Expires, Age, and Vary governance
  • stale response controls such as stale-while-revalidate and stale-if-error
  • immutable/versioned asset response policy
  • targeted cache control and CDN-Cache-Control
  • cache diagnostics through Cache-Status
  • cache grouping and invalidation requirements
  • structured field syntax for cache extensions
  • IETF, RFC, and IANA registry target review for cache/freshness surfaces

Included ADRs

  • adr:0900 cache/freshness standards targets are reviewed before governance inclusion

Included SPECs

  • spc:0900 cache/freshness governance target review

Standards Review Targets

The first release includes a standards target inventory for cache/freshness review. It covers current core candidates, supporting candidates, historical/superseded context, and non-IETF watchlist items. Review the inventory on GitHub:

Cache/Freshness RFC and IETF Target Inventory

The current review set includes RFC 9111, RFC 9110, RFC 5861, RFC 8246, RFC 9213, RFC 9211, RFC 9875, RFC 9651, and related IANA cache registries.

Install With uv

Install the pack into a project environment:

uv add cache-freshness-governance-pack

Install it alongside the SSOT Registry CLI:

uv add ssot-registry cache-freshness-governance-pack

Run without adding dependencies to a project:

uvx --from ssot-registry --with cache-freshness-governance-pack ssot --help

Install With The SSOT Registry Pack CLI

Pack-enabled SSOT Registry environments can install and synchronize packs through the pack command surface:

uvx --from ssot-registry ssot pack install cache-freshness-governance-pack
uvx --from ssot-registry ssot pack sync . cache-freshness-governance-pack

Use With The SSOT Registry CLI

After the pack is installed in the same environment as ssot-registry, synchronize ADRs and SPECs into a target repository:

uv run ssot adr sync .
uv run ssot spec sync .

Review the synchronized governance surface:

uv run ssot adr list .
uv run ssot spec list .
uv run ssot spec get . --id spc:0900

Use the IDs from this pack when linking project features, tests, claims, and release evidence in your local .ssot registry.

Programmatic Usage

from cache_freshness_governance_pack import load_document_manifest, read_packaged_document_text

adr_manifest = load_document_manifest("adr")
spec_manifest = load_document_manifest("spec")

print(adr_manifest[0]["id"])
print(spec_manifest[0]["id"])

text = read_packaged_document_text("spec", "SPEC-0900-cache-freshness-governance-target-review.yaml")
print(text[:120])

Resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cache_freshness_governance_pack-0.1.2.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file cache_freshness_governance_pack-0.1.2.tar.gz.

File metadata

File hashes

Hashes for cache_freshness_governance_pack-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f2c0616bcb6681bd80e1c42ccaea9a3cbe70ffce0ac8c9395d603a73c93409ef
MD5 8acb96190928be6ae3783f790f56ecb1
BLAKE2b-256 71e21aaed1d6a0a8971e486ce688dd244ad4891820e3c1f28902f8483a36c012

See more details on using hashes here.

Provenance

The following attestation bundles were made for cache_freshness_governance_pack-0.1.2.tar.gz:

Publisher: publish.yml on groupsum/cache-freshness-governance-pack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cache_freshness_governance_pack-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cache_freshness_governance_pack-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9143bc387cf6c1ee86413bfa20446508691ea0897c6235b2c515c97fcbc8cd65
MD5 b41f867717c14ee25186c1eb2b90d687
BLAKE2b-256 93e757f2d73ba5edcc2a7484aa1f2cb00ca1cfcf6758e3354551824508cbb500

See more details on using hashes here.

Provenance

The following attestation bundles were made for cache_freshness_governance_pack-0.1.2-py3-none-any.whl:

Publisher: publish.yml on groupsum/cache-freshness-governance-pack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page