I am developing a simple web application. Users of the application can add the application to the home screen of their iOS device to be presented with a nice app icon and an almost app-like user experience. This approach has one problem though:
While developing I deploy a new version of the application rather often. I then open Safari on the iOS device, hit refresh, and all HTML-, JavaScript- and CSS-files are refreshed. So far everything works as designed.
But if I open the website using the shortcut added to the homescreen, old stylesheets are being loaded and no matter what I do, the website cannot be persuaded to discard its cached files and reload them.
Here is what I tried so far:
- I removed and recreated the shortcut.
- I cleared the history and browser data from Safari
- I cleared the history and all website data using the Settings app.
- I rebooted my device.
- I even added headers instructing the browser to not cache any files at all.
- I tried a whole bunch of combinations of the steps mentioned above.
The home screen web app did reload an HTML-file that had a single word changed, though - so something must be working correctly. Appending some suffix or parameter to the CSS file links is no option here. I am using Aurelia in combination with jspm - all stylesheets and script files are included automatically acoording to their names.
And to just repeat it: When opening the page using Safari (or any other brother on the iOS device) everything works as expected.
Could anybody point me in the right direction on how to fix this problem?