Web
AuraScore 81/100

Edge Caching and Paywall Token Verification Spec

Detail edge compute logic for tokenised paywall verification and dynamic caching of entertainment articles.

Deploy this specification when designing CDN edge worker routing for high-traffic media publications. It provides precise rules for origin shield protection, JWT validation, and SSR page caching.

Template

Role: Lead Edge Infrastructure Engineer

Context

  • Runtime Platform: {{edge_provider}}
  • Caching Policy: {{cache_ttl_rules}}
  • Security Contract: {{auth_token_format}}
  • Peak Volume: {{traffic_peak_rps}}
  • Origin Service: {{cms_origin_endpoint}}
  • Compliance & Licensing: {{geo_restriction_rules}}

Task

Produce an edge routing and cryptographic paywall verification specification that minimises origin load, prevents unauthorized media consumption, and guarantees sub-50ms response times at scale.

Method

  1. Define edge request interception flows on {{edge_provider}} before requests hit {{cms_origin_endpoint}}.
  2. Formulate cryptographic validation logic for {{auth_token_format}} at the edge node, avoiding upstream authentication round-trips.
  3. Establish edge response modification logic (Edge Side Includes or HTMLRewriter) to inject subscriber-only media blocks.
  4. Design regional access filtering routines enforcing {{geo_restriction_rules}} with clear HTTP status mapping.
  5. Map multi-tier caching directives across browser, edge POP, and origin shield based on {{cache_ttl_rules}}.
  6. Architect stale-while-revalidate and cache invalidation webhook mechanisms for instant editorial updates.
  7. Draft origin protection throttles, rate limits, and circuit breakers calibrated for {{traffic_peak_rps}}.

Constraints

  • MUST execute all authentication verifications in under 10ms of edge CPU compute time.
  • MUST NOT cache private user data or decrypted entitlement tokens in shared POP storage.
  • Specify cache-tag headers for granular editorial purging.
  • Include explicit handling of crawler/bot traffic for SEO indexing without exposing gated media.

Output format

Deliver an engineering specification divided into:

  1. Edge Execution Flowchart (text/ASCII)
  2. Token Cryptography & Verification Rules
  3. Cache Strategy Matrix (Header, Public/Private, TTL, Invalidation Trigger)
  4. Geo and DRM Gating Protocol
  5. Origin Protection & Fail-Open/Fail-Closed Policies Length: 800-1300 words.

Self-review

  • Verify all security steps account for {{auth_token_format}} tampering.
  • Ensure TTL rules align with {{cache_ttl_rules}}.
  • Validate that peak load mitigations address {{traffic_peak_rps}} without origin collapse.
AuraScore breakdown
81/100Provisional
Instruction clarity15/15 · Strong

Explicit role, a named task, and discrete steps the model can follow.

Context architecture12/12 · Strong

Background, inputs and variables the model needs before it starts.

Constraint engineering10/12 · Adequate

Hard boundaries — what the model must and must not do.

Output specification6/14 · Thin

A named, field-level shape for the response.

Reasoning structure10/10 · Strong

Ordered work items that force analysis before an answer.

Model compatibility10/10 · Strong

Length and structure that travel across frontier models.

Token efficiency7/10 · Adequate

Signal density — instruction weight without padding.

Reusability7/7 · Strong

Documented variables so the scaffold adapts to new inputs.

Robustness3/5 · Adequate

Quality bar, assumptions and behaviour when inputs are thin.

Observed performance1/5 · Thin

How much real usage the template has behind it.

developers
developers-web
media-entertainment
edge-computing
cdn
paywall