Forum Discussion
mhayes97
Dec 15, 2022Copper Contributor
Navigation bar not updating for others
I am working with the global navigation for my home site. I have a repeating issue in which when i update the navigation (be it global or local site navigation) the user will for the first time need ...
iXeeshanTahir
Sep 04, 2023Copper Contributor
I have faced the similar issue in past. So, after weeks of trying different approaches, I was finally able to achieve this with some custom piece of code.
The problem here is that SharePoint Online stores the Hub navigation in browser cache. A database called ODSP_DB is holding the navigation nodes. Users cannot see the navigation updates unless they clear browser cache (which eventually refreshes the database) or logout and login to the system.
To overcome this issue, you have to clean the DB with custom JS Code and unregister a service worker from the browser, which actually forces the browser to rebuild the ODSP_DB and the navigation nodes.
I have placed the sample code on my blog. May be it will help someone until a proper way is announced by Microsoft.
http://fixingsharepoint.blogspot.com/2022/11/sharepoint-online-hub-navigation-not.html
The problem here is that SharePoint Online stores the Hub navigation in browser cache. A database called ODSP_DB is holding the navigation nodes. Users cannot see the navigation updates unless they clear browser cache (which eventually refreshes the database) or logout and login to the system.
To overcome this issue, you have to clean the DB with custom JS Code and unregister a service worker from the browser, which actually forces the browser to rebuild the ODSP_DB and the navigation nodes.
I have placed the sample code on my blog. May be it will help someone until a proper way is announced by Microsoft.
http://fixingsharepoint.blogspot.com/2022/11/sharepoint-online-hub-navigation-not.html