1

It has already been well explained in this section

We cannot clear the user's browser cache due to security issues.

One solution is to set the caching time to zero. The second solution: We communicate the values โ€‹โ€‹of the api version through a header with the Api and based on that the uploads are done.

Other than these two solutions, how can we update the front-end side after providing a new version of the application and not allow the browser to be cached?

mocherfaoui
  • 902
  • 1
  • 2
  • 11
  • For most cache use cases next.js does a good job. Did You checkout this? https://nextjs.org/docs/going-to-production#caching. If users work in a hydrated app, possibly browser will not hit server while navigating. Perhaps explain your use case more detailed. โ€“ Stefan Dec 25 '22 at 16:39

0 Answers0