• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Kikobeats / cacheable-response / 31116801903
99%

Build:
DEFAULT BRANCH: master
Ran 06 Aug 2026 03:47PM UTC
Jobs 1
Files 2
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Aug 2026 03:38PM UTC coverage: 98.551% (-0.3%) from 98.855%
31116801903

push

github

web-flow
fix: make cache bypass actually refresh and stay uncached (#142)

* fix: make cache bypass actually refresh and stay uncached

Two bypass paths advertised the wrong HTTP caching behavior:

1. Custom keys that pass query-string force values (e.g. req.query.force
   === 'true') never refreshed because @keyvhq/memoize only treats
   forceExpiration === true as expired. Headers said BYPASS while the
   stale body was still served. Coerce the flag to boolean before memoize.

2. Returning null/undefined from .get() is documented as preventing
   caching, but responses still sent public max-age Cache-Control, so
   CDNs could store fallback/error bodies. Send no-store when memoize
   produced no payload.

Co-authored-by: kikohumanbeatbox <kikohumanbeatbox@gmail.com>

* refactor: tighten the memoize key normalization

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MTbj6CYXGsk6rhXx7J8SUP

* test: cover falsy force value in custom key

Boolean() coercion keeps custom keys aligned with the default
presence-based bypassQueryParameter semantics.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QpdsjFkcyG4NHixpoVwWKq

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: kikohumanbeatbox <kikohumanbeatbox@gmail.com>
Co-authored-by: Kiko Beats <josefrancisco.verdu@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

59 of 63 branches covered (93.65%)

Branch coverage included in aggregate %.

15 of 15 new or added lines in 2 files covered. (100.0%)

213 of 213 relevant lines covered (100.0%)

34.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31116801903.1 06 Aug 2026 03:47PM UTC 2
98.55
GitHub Action Run
Source Files on build 31116801903
  • Tree
  • List 2
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31116801903
  • 0387d024 on github
  • Prev Build on master (#30846566705)
  • Next Build on master (#31182200489)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc