Cache CSS и JS in Nginx

location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|pdf|ppt|txt|bmp|rtf|js)$ {
    root /path/to/document/root/
    access_log off;
    expires 7d;
}

Leave a Reply

Your email address will not be published. Required fields are marked *