I just looked at an Angular project that I’ve worked on (v17) and a production build has hashes in the file names. The index.html references the JS files with hashes. So, every time a build is created, the index.html gets updated with the new hashes.
I would guess that your problem is just with your index.html file being cached.