Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gzip on;
- gzip_min_length 1100;
- gzip_buffers 4 8k;
- gzip_proxied any;
- gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;[/code]
- If you're looking to set some expiry headers to images, etc in nginx try this.
- [code]location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov)$ {
- expires 30d;
- break;
- }
Add Comment
Please, Sign In to add comment