Last active
May 31, 2018 12:13
-
-
Save punit5658/83fec4149b1b4e9d9c8de7bef853546c to your computer and use it in GitHub Desktop.
Nginx Configuration
This file contains hidden or 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