Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # webp support untuk plugin ewww
- # see: https://docs.ewww.io/article/16-ewww-io-and-webp-images
- map $http_accept $webp_suffix {
- default "";
- "~*webp" ".webp";
- }
- location ~* ^.+\.(png|jpe?g)$ {
- # see https://docs.ewww.io/article/16-ewww-io-and-webp-images
- # untuk pengguna ewww plugin webp
- add_header Vary Accept;
- expires 31d;
- try_files $uri$webp_suffix $uri =404;
- log_not_found off;
- access_log off;
- }
Advertisement
Add Comment
Please, Sign In to add comment