Run the following snippet in Terminal to disable the automatic creation of .DS_Store files when accessing a network resource.

defaults write com.apple.desktopservices DSDontWriteNetworkStores true