Skip to content

Instantly share code, notes, and snippets.

View wilsonrobin's full-sized avatar

Robin Kenell wilsonrobin

View GitHub Profile
@wilsonrobin
wilsonrobin / webp.conf
Created June 26, 2023 11:42
Webp-express nginx rules for bedrock wordpress
location ~* ^/app/.*\.(png|jpe?g)$ {
add_header Vary Accept;
expires 365d;
}
location ~* ^/app/.*\.webp$ {
expires 365d;
if ($whattodo = AB) {
add_header Vary Accept;
}
}