I am using SharePoint Online. I set up a new document library. Everything is good.
1. I create a file HelloWorld.txt with the text Version 1. Looks good.
2. I alter the the file on my local machine (Version 2), upload the new version. Open Looks good. Versioning is working fine.
Now Java Script files:
1. I upload my HelloWorld.js file. It has some java script code to pop up an alert. Version 1, looks good. And the script works.
2. I add a comment to the start /*This is some text*/. Upload my new version.
Here is the odd part: When i open the file my edit is missing. And the new version 2.0 (under version history), does not show the edit. However if I download the file, that file does have my new line. Now I go to bed, wake up the next morning and voila,
the version is up to date.
I can only assume that Java script is treated differently. I can recreate this at will. What is going on?