igrigorik / webp-detect

WebP with Accept negotiation

Home Page:http://www.igvita.com/2013/05/01/deploying-webp-via-accept-content-negotiation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vary: Accept should be sent even if they don't accept webp

dobesv opened this issue · comments

I noticed that your nginx script would only send the Vary: Accept response header if webp support is detected. However, that's not quite right; it should always be sent for images that have a webp variant available.

Thanks, good catch!

Update: f70dfdb