It looks like your script has been aggressively cached by either Chrome itself or some other intermediate server.
If this is a js file that is called from an HTML page (which sounds the way it is), one of those methods that I saw has a page adding a parameter to the file:
<script src="/media/main.js?v=123"></script>
or
<script src="/media/main.js?v=2015-01-03_01"></script>
... which you change when JS is updated (but will be ignored by the server). Neither the browser nor the intermediate cache servers recognize it as one and will not try to use the cached version, even if the same file name is still on your S3 server.
Whenever you release, you can update this number / date / independently, ideally automatically, if the template engine has access to the application version number or identifier.
This is not the most elegant solution, but it is useful to have it if you ever find that you have used the length of continuous caching with optimization.
Obviously, this only works if you correctly uploaded the new file to S3, and S3 does send the new version of the file. Try using a command-line utility, such as curl or wget , at the javascript url to check this if you have any doubts about this.
source share