Skip to content

Instantly share code, notes, and snippets.

@vijayvp710
Forked from hardik250186/nginx.conf
Created June 9, 2018 10:53
Show Gist options
  • Save vijayvp710/e2387b64bed7fa0da977446900ec89d4 to your computer and use it in GitHub Desktop.
Save vijayvp710/e2387b64bed7fa0da977446900ec89d4 to your computer and use it in GitHub Desktop.
Nginx Configuration
gzip on;
gzip_static on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_min_length 512;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/x-javascript application/json application/xml application/rss+xml font/truetype application/x-font-ttf font/opentype application/vnd.ms-fontobject image/svg+xml;
location ~* \.(jpg|jpeg|png|gif|ico|css|js|mp3)$ {
expires 30d;
add_header Cache-Control public,max-age=259200;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment