-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebDAV is fetched twice on initial page load #45882
Comments
Same is actually the case when going to the recents view and reloading the page |
server/apps/files/src/views/FilesList.vue Lines 480 to 481 in 1d7893d
Coming from here @susnux |
Probably it triggers a settings change directly on init? |
probably that |
It seems things got worse, so maybe worth to schedule looking into this @sorbaugh just noticed on my local instance it is doing 4 propfinds against the root on a page load, same on our prod. |
On it |
I think the reason why it is increasing is that there is no other way for other apps to load the current content. Meaning if you need the current content of the files app, you have to use This would not need any adjustments of using apps, as the |
Yes and no, there are various issues:
I'll address 2 and 3 in a minute, still thinking about 1 Basically there was 2 content fetched, and #45708 added 2 more |
Nice fixes :) But I still think we need a way to access the current content without require to refetch, this was possible in legacy file list, but now the only option is |
@susnux what about an etag on root, or a similar approach? |
Let's re-open for the filter issue
|
Yes for some parts this would be quite a nice improvement. Also if there are more apps, this issue will grow as each app needs to request the etag. So we could do both, use the etag and allow getting a cached version. |
Photos app has the same problem btw, not sure if that will be fixed automatically if it is fixes for Files. |
I don't know if this is related, but many (8 out of 10)
v28.0.9, no sync/webdav clients involved (100% web). |
Steps to reproduce
Current behaviour
The PROPFIND on the root directory is sent twice
Actual behaviour
Only one request should be done
Additional context
Reproducible on 29.0.2 and latest master
@nextcloud/server-frontend
The text was updated successfully, but these errors were encountered: