Problem Description
When a project is minified on export, the Browser plugin conditions "On update found" and "On update ready" do not trigger. The service worker sends the messages like it is supposed to, but nothing happens in the engine.
Attach a Capx
https://drive.google.com/open?id=0B40Xy ... EpEOXJrMWs
Description of Capx
Displays text. If an update is found, it will update the text. If an update is ready, it will also update the text.
Steps to Reproduce Bug
- Open linked capx.
- Export for HTML5 website minified.
- Open in browser.
- Export again, to simulate "update"
- Refresh page.
- Wait a few seconds.
Observed Result
Text does not change. You can, however, observe some of the debug output of the service worker in the browser console.
Expected Result
Text should change
Affected Browsers
- Chrome: (YES)
- FireFox: (YES)
- Internet Explorer: (NOT TESTED)
Operating System and Service Pack
Windows 10 64 bit, build 14393.1358
Construct 2 Version ID
R244 64-bit
Other observations
I performed all testing of exported projects on Internet Information Services, with a mostly default configuration.
Whether or not the project is exported minified, simply refreshing the page in Chrome never seemed to actually load the updated version. In addition, after 2 refreshes, it would take 3 seconds for the service worker to decide that there is an update again. Only a hard refresh (ctrl+f5) seems to be reliable enough to actually load the new version. A lot of people don't think about hard refreshes when troubleshooting a website, so anything that can be done to fix this would be a good idea. Firefox has no issues loading the new version after the service worker downloads the update.