In below code you will find Nginx caching and Wordpress permalink.
try_files $uri $uri/ /index.php?$args;
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types application/javascript application/rss+xml application/vnd.ms-fontobject application/x-font application/x-font-opentype application/x-font-otf application/x-font-truetype application/x-font-ttf application/x-javascript application/xhtml+xml application/xml font/opentype font/otf font/ttf image/svg+xml image/x-icon text/css text/javascript text/plain text/xml;
location ~* .(?:ico|css|js|gif|jpe?g|png|woff|ttf|otf|svg|woff2|eot)$ {
Some basic cache-control for static files to be sent to the browser
expires 30d; # or use max
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
client_max_body_size 100M;
access_log off;