Replies: 2 comments 2 replies
-
Welcome @ficapy! 👋 The answer is in your screenshot. |
Beta Was this translation helpful? Give feedback.
-
Hi @ChristianMurphy With the cache enabled, everything works fine in most scenarios (it's rare to find an image link on the internet without cache headers :). So, I created a non-caching SVG using Cloudflare Workers: https://no-cache-svg.zu.workers.dev. Do you have any suggestions for this image? I don't want it to be re-requested when the URL hasn't changed. Since most images have cache headers, the current implementation doesn't usually result in repeated requests. I'm just wondering if there's a more robust solution that doesn't rely on cache headers. |
Beta Was this translation helpful? Give feedback.
-
I am using a project ChatGPT-Next-Web that uses react-markdown for rendering. I've encountered a bug where, under streaming response conditions, it fails to handle image rendering correctly. Images are being re-rendered and requested from the network hundreds of times.
I created a minimal reproduction: https://stackblitz.com/edit/vitejs-vite-3jdib8?file=src%2FApp.jsx. It adds a bit of content to the existing Markdown every second, causing the Markdown to re-render and re-request the images.
I found a similar discussion here: remarkjs/react-markdown#703.
Is there an effective way to ensure that each image is only requested once?
Beta Was this translation helpful? Give feedback.
All reactions