dreamerkumar / bizsitegenie

MEAN application Framework for Rapid Application Development with UI interface for code generation
46 stars 11 forks source link

https requires refresh to show items other then the dashboard #11

Open staminna opened 7 years ago

staminna commented 7 years ago

Hi Vishal,

Using https, when I login, only the dashboard is shown. I always need to refresh so I can see the items created. Any idea?

I am adding service workers support though it is logging me out when I refresh and https is essencial for the app and the service workers to work. I think it is logging me out because I can't use document.querySelector() for angular authentication service. Thanks

dreamerkumar commented 7 years ago

I dont think it has got something to do with https. It has to be a caching issue. Its caching the previous state of thr home url. Thats why refresh fixes the problem.

staminna commented 7 years ago
  1. I disabled the service worker caches all together and still didn't show the main custom items at the first time. I have had this issue since I first started using htts, weeks before the service worker code.
  2. I re-enabled the service worker code and now refresh doesn't log out anymore.
dreamerkumar commented 7 years ago

I was able to reproduce the issue. I don't know why it doesn't get the list of items after logging in the first time. But it works after refreshing the page.

Will drill down further to figure out why this is so.