Equivalent newly allocated HTTP header maps currently miss the compiled SVG cache. Compare headers by value, and snapshot headers in cache keys so caller mutation cannot corrupt retained entries. HTTP clients stay out of equality and hashing, as before. The const loader constructor is preserved.
Addresses the header equality bug reported in https://github.com/flutter/flutter/issues/158818 (the report is closed, but this behavior remains in current main). Tests cover header order, distinct authorization values, mutation and eviction, concurrent de-duplication, and theme isolation.
Validation on Windows: `flutter analyze` passed; complete `flutter test` passed (82 passed, one existing skip); formatting and `git diff --check` passed. Existing golden tolerances reported small platform differences; no golden files were updated.
Merged with main (ca0a2d337) and bumped flutter_svg to 2.4.1, above the 2.4.0 entry from #13596. Analyze and the complete test suite pass after the merge (89 passed, one existing skip).
Overlap with open PRs: #12808, #13599, #13600, and #13628 conflict only in release metadata. #13598 also conflicts in loaders.dart. The current heads of #13596 and #13613 conflict in cache.dart against the main changes included here.
AI-assisted; independently checked with focused and complete tests. CLA status is left for the contributor/CLA bot to verify.
## Pre-Review Checklist