skip to Main Content

I’ve deployed a react app on github sites, but I can’t view the updates without refreshing. I need to refresh using ctrl + f5 or hard refresh. Can somebody tell me how to make the server clear its cache automatically so that I can notice fresh modifications right away? so We’re using React Js to build a Progressive Web App (PWA) with service workers. After each server deployment, the pages are not updated, and we must perform a hard refresh each time. This is not the proper approach because we cannot notify real-time users to perform a hard refresh after each deployment. So, pls provide a way to avoid hard refresh on react app using PWA.

Appericate in advance!

I had try to add hot reload so that server can clear cache in react app but i dont know its not working as expected.

2

Answers


  1. cache is related to your server or ssl provider, please let me know which server or ssl you are using for production.

    Login or Signup to reply.
  2. send your webpack config.js,we’ll check it

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search