How to send correct image content type header for static generated on nginx? #1127
Unanswered
pixelpaulaus
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
Seeing as NuxtIMG does not modify the filename extensions. If you serve the image via the server nuxt, it knows to send the correct content type header. However, if you generate a static site and serve it via something like nginx. it will get the desired header to send from the extension of the file (image.jpg). So instead of sending webp as the content type, it will send jpg as per the file extension.
So how does everyone else get the correct content type sent on nginx hosts?
Beta Was this translation helpful? Give feedback.
All reactions