Browse Source

nginx config add image, video file cache control

master
filesite 6 months ago
parent
commit
3c932205fb
  1. 8
      conf/nginx_machete.conf

8
conf/nginx_machete.conf

@ -11,6 +11,14 @@ server { @@ -11,6 +11,14 @@ server {
root /var/www/machete/www;
index index.php index.html;
location ~ .*\.(gif|jpg|jpeg|png|webp|bmp|swf|js|css|ico|mp4|ts)$ {
expires 30d;
}
gzip on;
gzip_comp_level 4;
gzip_types text/css text/xml application/x-javascript application/atom+xml application/rss+xml application/x-shockwave-flash;
location / {
try_files $uri $uri/ /index.php?$args;
}

Loading…
Cancel
Save