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

    XMLWordPrintable

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)";
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            yannick.roger-obsolete@ez.no Yannick Roger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: