As I was preparing to describe these caveats, I thought, 'I wonder if the new Service Worker and Caching APIs could enable caching for inline code.' As it turns out, they can!
View here: https://www.filamentgroup.com/lab/inlining-cache
By the way... I am currently exploring work opportunities for 2024! If you think I might make a good addition to your team, whether full-time or as an independent contractor, please reach out.