-
-
Save vijayvp710/e2387b64bed7fa0da977446900ec89d4 to your computer and use it in GitHub Desktop.
Nginx Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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