revert changes
This commit is contained in:
@ -1,9 +1,3 @@
|
|||||||
map $http_accept $webp_suffix { "~*webp" ".webp"; }
|
|
||||||
types {
|
|
||||||
# ensure the nginx supports the mime type
|
|
||||||
image/webp webp;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
@ -23,9 +17,6 @@ server {
|
|||||||
add_header Cache-Control "public, no-transform";
|
add_header Cache-Control "public, no-transform";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(?:png|jpe?g)(\?.+)?$ {
|
|
||||||
try_files $uri$webp_suffix $uri =404;
|
|
||||||
}
|
|
||||||
|
|
||||||
error_page 404 /404.html;
|
error_page 404 /404.html;
|
||||||
location = /404.html {
|
location = /404.html {
|
||||||
|
Reference in New Issue
Block a user