Old File Still Served
You uploaded a fixed app.js to the S3 origin, but users behind CloudFront still get the old one. What makes them get the new version?
app.js
Choose one answer
Turn off and turn on the distribution, which clears all edge caches.
Change the bucket's storage class, which makes CloudFront refetch objects.
Enable versioning on the S3 bucket so CloudFront fetches the newest version.
Create an invalidation for /app.js, or use versioned file names.
/app.js