Skip to content

Enable gzip in the nginx config by default #2

@wingrunr21

Description

@wingrunr21

Would like to request enabling basic gzip settings/expire headers in the nginx config by default:

gzip on;
gzip_static on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_disable “MSIE [1-6].(?!.*SV1)”;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf)$ {
  expires 1w;
  access_log off;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions