Hi There,
I have a Single page application with Home page as my Desktop. So, when first time request come to server for example user enter url like localhost:5000 in browser, it will show home desktop which is happy situation.
Now, in URL user append query string like localhost:5000?id=1 which should become new request and send to the server. However, instead of sending new request, it refresh DOM from cache data.
To deal with this issue, I come across one setting in Default.json file called allowedRoutes where you can set different routes of the application and I believe if new route comes then it should fire Application.Refresh event. I tried to play with this option but not worked for me.
Could you please help me how can I tell server that request is new because I change the query string in url ?
Reference URL – https://docs.wisej.com/docs/concepts/configuration
Hi There,
Thanks for replying. Please find attach sample project. This is simple project which is opening Window1 form by hitting localhost:5000. Now, If I close Window1 and enter localhost:5000?id=1 in browser URL, ideally it should make new request to server and open Window1 again. However, its not the case. Its taking data from cache.
Appending ?id=1 or any argument to the URL generates a new request. The same is true when there is a new URL. Wisej.NET cannot change the way the browser requests pages. The allowedRoutes property simply allows you to refer to the same application with a different URL instead of getting a 404. The new request comes in from the on the same session, which is the expected behavior. In your app you can handle ApplicationRefresh. It all works as expected.
If you’d like us to look into your configuration attach a small runnable test case.
Please login first to submit.