Skip to content

fix(dav): [GET] set explicit Cache-Control to avoid relying on browser heuristics#58529

Open
joshtrichards wants to merge 2 commits intomasterfrom
jtr/fix-dav-remote-cache-control-explicit
Open

fix(dav): [GET] set explicit Cache-Control to avoid relying on browser heuristics#58529
joshtrichards wants to merge 2 commits intomasterfrom
jtr/fix-dav-remote-cache-control-explicit

Conversation

@joshtrichards
Copy link
Copy Markdown
Member

  • Resolves: #

Summary

On our DAV endpoints, we don't explicitly set Cache-Control. This means browser's use heuristics to decide the caching policy.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Caching#default_settings

Among other things, this may help with matters like nextcloud/files_pdfviewer#1216 (without resorting to cache busting filenames).

Separately, but related, there's probably an opportunity audit across the board (public.php + others) - e.g. #45399

TODO

  • ...

Checklist

…istics

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards requested a review from a team as a code owner February 23, 2026 16:20
@joshtrichards joshtrichards requested review from ArtificialOwl, icewind1991 and nfebe and removed request for a team February 23, 2026 16:20
@joshtrichards joshtrichards added 3. to review Waiting for reviews feature: dav hotspot: file transfer performance upload & download performance related optimizations labels Feb 23, 2026
Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards added this to the Nextcloud 34 milestone Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug feature: dav hotspot: file transfer performance upload & download performance related optimizations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants