Static files bad loading time

grigory nginx-forum at nginx.us
Sun Apr 26 10:11:32 UTC 2015


Sorry, I forgot to add the following part of the config (from server's
block):

        # Static files location
        location ~*
^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js)$
{
              if ($args ~* "^download") {
                   add_header Content-Disposition "attachment;
filename=$1";
              }

            expires    30d;
            root   /home/www/domain.com;
        }

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,258372,258382#msg-258382



More information about the nginx mailing list