As we released our latest version of Mongosis today we found a slight quirk with GitHub downloads where it appears to be caching files by name and size. For performance it's not necessarily a bad thing but it's important to be aware of; particularly in the following case:
In order to create a consistent URL to download the latest version of Mongosis (without having to update all the references to it), we would create a copy of the latest version in the GitHub downloads directory named mongosis-latest.msi and link directly to that. After replacing the mongosis-latest with our new latest version, when it came to testing the download, we found that it was bizarrely installing the previous version. After initially thinking we must have botched-up and uploaded the wrong version, a second trial yielded the same result.
A few more tests using completely different files and filenames deduced that despite being a totally different file, it was being deemed by GitHub as identical to the previous version because it had the same name and size. This was causing the download link to just fetch the cached previous version.
We have since scrapped the mongosis-latest as a file approach, and used a redirect mechanism.
Want to know more about what it's like to work in tech at Simply Business? Read about our approach to tech, then check out our current vacancies.Find out more
Keep up to date with Simply Business. Subscribe to our monthly newsletter and follow us on social media.Subscribe to our newsletter
99 Gresham Street
29 St Katherine's Street
© Copyright 2019 Simply Business. All Rights Reserved. Simply Business is a trading name of Xbridge Limited which is authorised and regulated by the Financial Conduct Authority (Financial Services Registration No: 313348). Xbridge Limited (No: 3967717) has its registered office at 6th Floor, 99 Gresham Street, London, EC2V 7NG.