Summary: We updated several JS files for a frontend. These changes include several JS files and a single Minified JS file. These files are served via a Play server. We pushed these changed files (non minified JS and the single minfied JS file) to the Play server.
Problem: The single Minified JS file is not being served to browser sessions.
Steps:
We pushed the changed Minfied JS to the Play Server.
We are able to access the changed minified JS file via a CURL command. This shows that the changed Minfied JS file is available on the Play server
However when any browser requests the file from the Play server, the browser is getting the old Minified JS file instead of the changed Minified JS file.
We know it is not a browser cache issue. (tried via incognito session, or from a previously unused browser & rowser cache flushed)
The issue is
A new minfied JS file is available on the Play server
The new minfied JS file is accessible via a CURL command - proving that the new minfied file is on the server
However, When the a browser requests the UI; the browser is getting the old minfied JS file from the server.
This is obviously bizzare, and very strange.
Techstack
Postgress/ Java/Scala/Play > ALB > Cloudfront
Bypassing CLoudfront does not eliminate the problem. So the problem is not Cloudfront
- Bypassed cloudfront
CURL command on Play server retrieves correct JS file
- Push updated minified JS to Play server
- Request front-end from any browser
- See new front-end