Minimize WebDAV Requests on Mac

I am writing a WebDAV server and am facing the following problem. Mac OS X clients (Finder, Microsoft Office for Mac) generate too many different requests. I had the same problem with Microsoft Word for Windows, but after setting custom headers :

Ms-Author-Via: DAV

      

Microsoft Word began to use a much more limited number of queries. This is how a Microsoft Word edit session looks like on Windows (and Windows or Linux with LibreOffice):

PROPFIND
GET
LOCK (windows only)
PUT
UNLOCK (windows only)
PROPFIND (linux only)

      

Mac OS Finder and Office for Mac, however, generate a lot of additional prompts, namely:

  • Generating temporary files
  • Generating temporary folders
  • Moving around

Is there a header combination that reduces the number of requests on Mac OS X?

+3


source to share


1 answer


After some research, it unfortunately looks very much like it goes beyond some HTTP headers. This is also a known issue: this is its own issue and this document is in the DAV saber documentation. Apple solution by disabling temporary file creation with the following command:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

      



However, it looks like you will need to meet the needs of many customers outside of your control, which makes this impractical. Owncloud dealt with this by making fun of the good LOCK

/ UNLOCK

s
for searches, mainly these NOP queries. A less subtle approach was to prevent the creation of these files in the first place . On a personal note, I feel that the combination of the Owncloud approach in conjunction with file was the most promising and largely free of unwanted side effects. .metadata_never_index

+2


source







All Articles