I have a single page web app that use HTML5 history. I recently added a cache manifest to make it works offline.
The URL of the app is domain.com/app
and when it load the cache manifest make this URL able to go offline. But once the app is ready, the state of the app change, and the URL become domain.com/app/page
(thanks to history.pushState()
).
But if I go offline and reload the page (with this URL domain.com/app/page
), the browser tell me that there is no internet connexion instead of loading the app. If I ask for this URL: domain.com/app
, the app load and the URL become domain.com/app/page
once the app is ready.
So basically, is there a way to tell the browser that domain.com/app
and domain.com/app/page
are the same app ?