When I work on my local setup or on server, I run into a cookie issue because I have to manually clear browser cookies before seeing new changes. I'm using react for my application.
By Javascript document.cookie I'm not able to access that cookies so can’t delete it.
I need to clear by code so the user can see latest changes at all times. Hard refresh will solve the problem, but that's not a good idea.
I tried unregistering the serviceworker by using serviceworker.unregister(), but it didn't work.
Note: My project will run only from the server, no cookies or cache will be needed.
If anyone has same issue or any suggestion please provide.