Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22869

As a Sysadmin I want to have gzip compression and expires on nginx

    Details

      Description

      Based on a comment by @NicolasMartinez on https://github.com/ezsystems/ezpublish-community/pull/123

      You could also add Gzip compression and Expires

      enable expires on static files

                 location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
                            expires 7d;
                            log_not_found off;
                 }
      

      enable gzip compression

                 gzip  on;
                 gzip_http_version 1.1;
                 gzip_vary on;
                 gzip_comp_level 6;
                 gzip_proxied any;
                 gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
                 gzip_buffers 16 8k;
                 gzip_disable "MSIE [1-6].(?!.*SV1)";
      

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Yannick Roger (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: