Skip to content

svg are not cached #11799

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

Open
NeilRiver opened this issue Mar 20, 2025 · 2 comments
Open

svg are not cached #11799

NeilRiver opened this issue Mar 20, 2025 · 2 comments
Labels
stale status: needs-triage Possible bug which hasn't been reproduced yet

Comments

@NeilRiver
Copy link

Describe the Bug

I just installed the "website" template again and added another media block to the main page and uploaded the svg there. The result is exactly the same, the date was added.

svg must be cached

○ Compiling /[slug] ...
 ✓ Compiled /[slug] in 1311ms (3990 modules)
[⣷] Pulling schema from database...
[✓] Pulling schema from database...
[02:20:29] WARN: No email adapter provided. Email will be written to console. More info at https://payloadcms.com/docs/email/overview.
Image with src "http://localhost:3000/api/media/file/hosting_icon_1.svg?2025-03-14T23:20:14.854Z" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.
 GET /api/media/file/image-hero1.webp?2025-03-14T23:18:57.230Z 200 in 195ms
 GET /home 200 in 5480ms
 GET /api/media/file/image-post2.webp?2025-03-14T23:18:56.448Z 200 in 53ms
 GET /api/media/file/image-post3.webp?2025-03-14T23:18:56.428Z 200 in 65ms
 GET /api/media/file/image-post2.webp?2025-03-14T23:18:56.448Z 200 in 89ms
 GET /api/media/file/image-post1.webp?2025-03-14T23:18:56.782Z 200 in 37ms
 GET /api/users/me 200 in 12ms
 GET /home 200 in 124ms
[⣷] Pulling schema from database...
[✓] Pulling schema from database...
[02:20:34] WARN: No email adapter provided. Email will be written to console. More info at https://payloadcms.com/docs/email/overview.
 GET /api/media/file/hosting_icon_1.svg?2025-03-14T23:20:14.854Z 200 in 24ms

Image

Link to the code that reproduces this issue

https://github.com/payloadcms/payload/tree/main/templates/website

Reproduction Steps

  1. npx create-payload-app

  2. web site

  3. any db

  4. seeding

  5. add svg to any component

Which area(s) are affected? (Select all that apply)

area: core, area: ui

Environment Info

last
@NeilRiver NeilRiver added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction Auto-added tag on create to tell bot to check recreation URL, removed after check. labels Mar 20, 2025
@github-actions github-actions bot removed the validate-reproduction Auto-added tag on create to tell bot to check recreation URL, removed after check. label Mar 20, 2025
@NeilRiver
Copy link
Author

Image

GET /api/media/file/hosting_icon_1-6.svg?2025-03-12T14:37:14.289Z 200 in 22ms
 GET /api/media/file/hosting_icon_2-6.svg?2025-03-12T14:37:14.304Z 200 in 24ms
 GET /api/media/file/hosting_icon_3-6.svg?2025-03-12T14:37:14.296Z 200 in 24ms
 GET /api/media/file/hosting_icon_4-6.svg?2025-03-12T14:37:14.298Z 200 in 22ms
 GET /api/media/file/hosting_icon_5-6.svg?2025-03-12T14:37:14.294Z 200 in 17ms
 GET /api/media/file/hosting_icon_6-6.svg?2025-03-12T14:37:14.300Z 200 in 11ms
 GET /api/media/file/hosting_icon_7-6.svg?2025-03-12T14:37:14.292Z 200 in 14ms
 GET /api/media/file/hosting_icon_8-6.svg?2025-03-12T14:37:14.306Z 200 in 18ms
 GET /api/media/file/hosting_icon_9-6.svg?2025-03-12T14:37:14.308Z 200 in 23ms
 GET /api/media/file/hosting_icon_10-6.svg?2025-03-12T14:37:14.340Z 200 in 13ms

@NeilRiver
Copy link
Author

@jmikrut can you help?

@github-actions github-actions bot added the stale label Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale status: needs-triage Possible bug which hasn't been reproduced yet
Projects
None yet
Development

No branches or pull requests

1 participant