Open the Group policy object editor( see here)
Go to Computer Configuration -> Administrative Templated -> Network -> Offline files
Now the right side pane shows a list of settings related to offline files feature. Among this select “Synchronize all offline files before logging off” by double click and it will open a window like below.
Here select the box “Disabled” to disable synchronization of offline files during logoff.
Click on ‘Apply‘ and close the windows.