[Bug]: F-29 The mime icon redirect is fetched again for every file list
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- php
- Lĩnh vực
- backend, performance
Hướng nghiên cứu
Bắt đầu trong core/Controller/PreviewController.php tại getMimeIconUrl() và kiểm tra unit test hiện có được đề cập trong báo cáo. Tái hiện hành vi request của Files app hoặc kiểm tra browser trace, sau đó xác minh rằng mime icon redirect có thể được cache công khai trong một ngày và target có version vẫn hỗ trợ các thay đổi theme.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
⚠️ This issue respects the following points: ⚠️
- This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
- This issue is not already reported on Github OR solved at the Community Help Forum (I've searched!).
- I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. (Supported major versions and current patch levels).
- I agree to follow Nextcloud's Code of Conduct.
- I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description
F-29 · The mime icon redirect is fetched again for every file list
| Severity | Performance (one PHP request per mime type and page load) |
| Component | core/Controller/PreviewController.php::getMimeIconUrl() |
| Affects | 35.0.1 |
| Verified | Unit test; observed as 303 … no-cache in the browser trace of the Files app |
/core/mimeicon?mime=… answers with a redirect to the static icon, with the default
Cache-Control: no-cache, no-store. Browsers ask PHP again on every page. The redirect now allows
caching for a day (public; the target URL is versioned, so theme changes still show up).
Steps to reproduce
see the top
Expected behavior
see the top
Nextcloud Server version
35
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
- Ngôn ngữ chính
- PHP
- Star
- 37k
- Fork
- 5.3k
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 751
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/server
-
0. Needs triage 35-feedback bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
34-feedback
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Add a default limit to the results of the `occ taskprocessing:list` commandCó thể đã có người làm @Sahas2711 đã nhận hôm nay. Đang mởenhancement feature: TaskProcessing good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
1. to develop technical debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
0. Needs triage 35-feedback bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nextcloud/server
Issue tương tự
-
📚 Documentation: Placeholder link `link-to-realtime-docs` in Flutter SDK changelogCó thể đã có người làm @ShyneChikwapulo đã nhận hôm nay. Đang mởapi / realtime product / auth product / messaging product / vcs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
appwrite/appwrite#14272 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
Boavizta/boaviztapi#580 · 1 bình luận ·
-
Add PrestashopĐang mởrequest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
endoflife-date/endoflife.date#11303 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
0. to triage enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày