Skip to content

Conversation

@Auric-Team
Copy link

  • Implement thread-safe STS cache using ConcurrentHashMap
  • Add cache management methods (clear, evict, getSize)
  • Reduce latency by up to 99% for repeated requests
  • Add comprehensive test suite (10 test cases)
  • Maintain full backward compatibility

Fixes redundant HTTP requests to fetch player.js for STS extraction. Cache is keyed by player script URL and automatically handles YouTube player script updates.

- Implement thread-safe STS cache using ConcurrentHashMap
- Add cache management methods (clear, evict, getSize)
- Reduce latency by up to 99% for repeated requests
- Add comprehensive test suite (10 test cases)
- Maintain full backward compatibility

Fixes redundant HTTP requests to fetch player.js for STS extraction.
Cache is keyed by player script URL and automatically handles
YouTube player script updates.
@lavecat
Copy link

lavecat commented Nov 3, 2025

I Think sts caching in the lastest commit

@lavecat
Copy link

lavecat commented Nov 3, 2025

*is already in the lastest commit

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.

2 participants