Skip to main content

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

Metadata

Release files for cache-freshness-governance-pack 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cache-freshness-governance-pack 0.1.4
File Size Uploaded
cache_freshness_governance_pack-0.1.4.tar.gz 14.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cache-freshness-governance-pack 0.1.4
File Interpreter ABI Platform
cache_freshness_governance_pack-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 28.3 kB

Release files / cache_freshness_governance_pack-0.1.4.tar.gz

Download URL cache_freshness_governance_pack-0.1.4.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f06b5f3de080e319fc0deefd71561d8e8a614c3216c3eb960922cd40da13e41a
BLAKE2b-256 checksum
How to use checksums
3fe04afc5ebafb4711b45b956d907396ab9bd08dcb5c24052706fba875db2bae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log

Release files / cache_freshness_governance_pack-0.1.4-py3-none-any.whl

Download URL cache_freshness_governance_pack-0.1.4-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46d52abdc01ef632bc508d6788f210c03e492cc9f52591fa78583a770c260479
BLAKE2b-256 checksum
How to use checksums
6d1fe86706f5921d112e8363b52e782c41dbbb183a610ee7786559d0c147be06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page