location ~* \.(?:jpg|jpeg|png|gif)$ { add_header Vary Accept; try_files $uri$webp_suffix $uri =404; }