← Back to Blog 0.7.0 · APPS · BROWSER

Cache-Control Flags — HTTP Cache Directive Parser

June 23, 2026 · Sigil-Docs · sigil-apps d6ca3e8
appsbrowsernetcache0.7.0

cache_control.sg is the T19 sprint — HTTP Cache-Control header flags struct and directive parser. Stores is_public, is_private, max_age_val, no_cache, no_store as a 40-byte flags struct at flags_buf @0x560000. Tests 3 headers with various directive combinations, validating flag storage and retrieval via poke64/peek64. CACHE-CONTROL-PASS 8/8. 2224 B arm-el0.

Cache-Control flags struct

cache_control.sg
Directive parser + flags struct — parses Cache-Control header value string into a compact flags struct: is_public (shared cache OK), is_private (single-user cache only), max_age_val (max freshness seconds), no_cache (must revalidate), no_store (never cache). 40 bytes per header stored at flags_buf. Retrieval via peek64 for each field. Tests: 3 headers covering public+max-age, private+no-cache, no-store combinations. 8 assertions all green. CACHE-CONTROL-PASS 8/8.