added aquarium and mas emergence
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
map $http_accept $webp_suffix {
|
||||
default "";
|
||||
"~*webp" ".webp";
|
||||
default "";
|
||||
"~*webp" ".webp";
|
||||
}
|
||||
|
||||
server {
|
||||
@ -8,9 +8,16 @@ server {
|
||||
listen [::]:80;
|
||||
server_name localhost;
|
||||
|
||||
location ~* \.(?:jpg|jpeg|png|webp)$ {
|
||||
root /usr/share/nginx/html;
|
||||
try_files $uri$webp_suffix $uri = 404;
|
||||
location ~* ^/.+\.(jpg|jpeg|png|gif)$ {
|
||||
root /usr/share/nginx/html;
|
||||
# BEGIN Browser Caching of WebP
|
||||
expires 180d;
|
||||
add_header Pragma "public";
|
||||
add_header Cache-Control "public";
|
||||
# END Browser Caching of WebP
|
||||
|
||||
add_header Vary Accept;
|
||||
try_files $uri$webp_suffix $uri =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
@ -22,13 +29,12 @@ server {
|
||||
location = /404.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
# Caching headers
|
||||
# location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
|
||||
# expires 30d;
|
||||
# add_header Pragma public;
|
||||
# add_header Cache-Control "public";
|
||||
# }
|
||||
# Browser Caching
|
||||
location ~* \.(css|js|ico|gif|jpeg|jpg|webp|png|svg|eot|otf|woff|woff2|ttf|ogg)$ {
|
||||
expires 180d;
|
||||
add_header Pragma "public";
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
|
||||
gzip on;
|
||||
gzip_comp_level 4;
|
||||
|
Reference in New Issue
Block a user