When compilation workers process large results (>31KB) that aren't normally
cached (due to bypass settings), they now store them temporarily in S3 with
a 30-second TTL. This enables WebSocket transmission of large payloads by
sending an s3Key reference instead of the full result.
Changes:
- Added S3 TTL support via Expires header in S3Handler and S3Cache
- Added WEBSOCKET_SIZE_THRESHOLD (31KB) and TEMP_STORAGE_TTL_SECONDS (30s) constants
- Modified base-compiler to detect worker mode and store large non-cacheable results
- Optimized worker mode detection with cached class property
- Updated SQS compilation worker to use shared constants
Privacy: No policy changes needed - temporary storage (30s) is shorter than
existing cache retention (up to 1 week) and stores same data types already covered.
Fixes#7864🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>