pxt-microbit
                                
                                
                                
                                    pxt-microbit copied to clipboard
                            
                            
                            
                        Offline MakeCode in the browser doesn't work if the URL has query parameters
Describe the bug
For example, for the Android app, MakeCode is loaded with the /?androidapp=57 parameter, which doesn't work offline.
To Reproduce Steps to reproduce the behavior:
- Go to https://makecode.microbit.org
 - Turn off the internet
 - Reload the page, Makecode loads correctly ✅
 - Go back online
 - Go to https://makecode.microbit.org/?androidapp=57
 - Turn of the internet
 - Reload the page, MakeCode doesn't load ❌
 
Expected behavior A MakeCode URL with a query parameter to work offline if it has been visited at least once before online.
Screenshots N/A
micro:bit version (please complete the following information): N/A
Desktop (please complete the following information):
- OS: macOs
 - Browser: Chrome
 - Version: 124
 
Smartphone (please complete the following information):
- Device: Samsung S20
 - OS: Android 13
 - Browser: Chrome
 - Version: 125
 
And also with the micro:bit Android app.
Additional context N/A