Skip to content

Keep the toolbox worker out of Pad - #168

Merged
DenisValeev merged 1 commit into
mainfrom
agent/exclude-pad-from-offline-cache
Jul 26, 2026
Merged

Keep the toolbox worker out of Pad#168
DenisValeev merged 1 commit into
mainfrom
agent/exclude-pad-from-offline-cache

Conversation

@DenisValeev

Copy link
Copy Markdown
Owner

What changed

  • The root toolbox service worker now ignores /pad and /pad/* before any respondWith path.
  • The generated offline manifest was refreshed with the changed worker bytes.

Why

The root-scoped cache-first worker was crossing the application boundary and storing Pad HTML, hashed assets, and API responses. That allowed a pre-curriculum samples response to outlive a Pad deployment despite Pad's no-store policy.

Impact

Toolbox offline behavior is unchanged for its own apps. Pad now owns its own release and cache policy.

Validation

  • node --check service-worker.js
  • Offline manifest regenerated successfully
  • npx playwright test tests/offline-manifest.spec.js — 2 passed
  • Independent review found no remaining issues

@DenisValeev
DenisValeev marked this pull request as ready for review July 26, 2026 21:27
@DenisValeev
DenisValeev merged commit 14b51d7 into main Jul 26, 2026
github-actions Bot added a commit that referenced this pull request Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant