For the project, we tried to deploy the front-end React static files by using AWS S3 + cloudfront.
It worked at the first time, but there was an issue that even though we updated with new build, some of the contents were not updating.
For the updates, we tried using invalidation method in Cloudfront and set /index.html. However, it didn't work properly and didn't load the updated build file so we also tried to invalidate assets files and met this problem.
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec
Is there a way to cancel the invalidation that we already did or fix this issue?