How should a rust based tcp server serves static files?
I’m a new programmer, been learning coding for about 3 to 4 months now. I’m building a full stack website as a way to learn. And I’ve written the backend server in rust that just serves static html, css and image files. But I can’t figure out what’s the best format to serve images. I looked it up on Google and found that WebP was the best so I adjusted my server to serve the image files in webp instead of jpg format. But still the images take time to load in the browser. Can anyone help me with that?