1

I have single page application(Rails if it matters), where I am struggling with Browser cache. When user press back button It loads page from cache, not even HTTP 304. I have already set no-cache in response, but I belive browser has another layer of cache on top for single page application to provide fast back.

I understand there are some solutions here:-

  1. Disable browser back button for one page application
  2. https://softwareengineering.stackexchange.com/questions/256363/dealing-with-browser-cache-in-single-page-apps

However all of them involve, having either a popup box, or disabling back button. Both I think are terrible UX choices. Is there any other way to force browser to query server in SPA?

Mangat Rai Modi
  • 5,397
  • 8
  • 45
  • 75

0 Answers0