Skip to content
Skills Library
Security · Analysis

stale-window-overflow-audit

/stale-window-overflow-audit

Measure how long content can be served past its revocation point through stale allowances, since a revoked document or a deleted account may still be replayed for hours. Use when responses carry stale-while-revalidate, stale-if-error or must-revalidate in combination with a meaningful freshness lifetime

Repository
edgescout ↗
Licence
MIT
Last repository change
28.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Measure how long content can be served past its revocation point through stale allowances, since a revoked document or a deleted account may still be replayed for hours. Use when responses carry stale-while-revalidate, stale-if-error or must-revalidate in combination with a meaningful freshness lifetime

Original author description

Measure how long content can be served past its revocation point through stale allowances, since a revoked document or a deleted account may still be replayed for hours. Use when responses carry stale-while-revalidate, stale-if-error or must-revalidate in combination with a meaningful freshness lifetime

How it works

  1. Procedure
  2. Signals
  3. Patterns
  4. Pitfalls
  5. Done when
  6. References
Original SKILL.md headings · 61 lines, 392 words
SKILL.md preview
---
name: stale-window-overflow-audit
description: "Measure how long content can be served past its revocation point through stale allowances, since a revoked document or a deleted account may still be replayed for hours. Use when responses carry stale-while-revalidate, stale-if-error or must-revalidate in combination with a meaningful freshness lifetime"
pack: edgescout
version: 1.0.0
category: web-app
tags: [audit, ttl, freshness]
---

# Stale Window Overflow Audit

> Measure how long content can be served past its revocation point through stale allowances, since a revoked document or a deleted account may still be replayed for hours

**Use when:** responses carry stale-while-revalidate, stale-if-error or must-revalidate in combination with a meaningful freshness lifetime

**Avoid when:** the response uses no stale allowances and must-revalidate is enforced on every tested path

## Procedure

1. Record every stale-related directive on the response with its numeric value where the directive takes one.
2. Compute the worst-case serving window as freshness lifetime plus the largest stale allowance the policy permits.
3. Compare that window with the property's own revocation expectations, such as how fast a document removal must take effect.
4. Check whether an error at the origin extends serving further under a stale-if-error allowance.
5. Verify what happens to a stored entry when the application explicitly purges it, since a purge should override any allowance.
6. Report the worst-case window with the directives that produce it and the revocation expectation it violates.

## Signals

- A stale allowance is large enough to outlive a document revocation or an account deletion
- An error response at the origin triggers extended serving of an older copy
- A purge does not take effect immediately on a path with a stale allowance
- must-revalidate is absent while a long stale allowance is configured

## Patterns

**1. Worst-case line**

```text
max-age=3600 + stale-while-revalidate=86400 -> up to 90000s of continued serving after the stated lifetime
```

**2. Revocation compare**

```text
property expectation: revocation within 15 minutes; observed worst case: 25 hours -> gap written with both numbers
```

**3. Purge override test**

```text
purge the path with permission, then re-request: an immediate miss proves the purge wins, a stale hit proves the allowance wins
```

## Pitfalls

- Adding directives incorrectly and overstating or understating the serving window
- Reporting a theoretical window without checking whether a purge overrides it in practice
- Ignoring the error path, which is often the case where the longest serving window appears

## Done when

- A worst-case window is computed per tested path with the directives shown
- The purge override behaviour is confirmed by an observed request after a purge

## References

- [IETF RFC 5861 - HTTP cache-control extensions for stale responses](https://www.rfc-editor.org/rfc/rfc5861)
- [MDN - Stale-while-revalidate](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control)

Versions

The database has no other skills named stale-window-overflow-audit.

Database snapshot: 13.11.2026 · package version d164783900ce (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100stale-window-bounding
    Cap how long a stored response may be served after its revocation point, so a deleted document or a closed account cannot be replayed for hours. Use when the audit measured a worst-case serving window that exceeds the property's revocation expectation
  • 90http-caching
    Use HTTP caching correctly with etags, max-age, and stale-while-revalidate so clients and proxies reuse responses without serving stale data. Use when responses lack cache headers, a bad deploy served stale content, or revalidation traffic is heavy.
  • 100netlify-caching
    控制 Netlify CDN 缓存的指南。在配置缓存头、设置 stale-while-revalidate、实现按需缓存清除,或了解 Netlify CDN 缓存行为时使用。涵盖 `Cache-Control`、`Netlify-CDN-Cache-Control`、缓存标签、持久缓存和框架专属缓存模式。
  • 100long-lived-credential-window
    Measure how long an idle credential stays fully usable, and whether it is tied to the session or account state behind it. Use when credentials have long lifetimes and you need to prove how far inactivity, account change or rotation extends their reach
  • 90frontend-browser-caching
    Use this skill when the user says 'browser caching', 'cache headers', 'service worker', 'SW', 'stale-while-revalidate', 'SWR', 'cache strategy', 'Cache-Control', 'ETag', 'cache busting', 'offline caching', or when optimizing frontend load performance. This skill enforces:…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.