How to selectively prevent caching?
I recently changed to the multi-page template because I wanted caching on some pages. That works well.
However, I have a list. Clicking on the list navigates to a form page to display a database record. The form loads the database record via a rest service. That works ok the first time I open a record (lets call it record 'A'). The problem occurs when I click on another list item (e.g. item 'B'). It opens the form page with record 'A' still displayed. It is obviously caching page 'A'.
What I'd really like to do is prevent caching in this instance. In other words, the navigateto should open the form and invoke a new load event - to trigger the rest service.
I know I could use the 'show page' event. I tried this. The problem is that the page loads with the cached record 'A', then quickly updates with the correct record 'B'. The user sees the wrong contents for a brief moment. It's not a good look.
Is there any way I can use the navigateto command but somehow tell it to perform a normal page load? i.e. to prevent caching?