Add: fastcgi_cache_lock on;
Restricts the number of concurrent attempts to populate the cache, so that when a cached entry is being created, further requests for that resource are queued up in NGINX.
For ngx_pagespeed users, add to your config "pagespeed ModifyCachingHeaders off;".
fastcgi_cache_path /var/run/nginx_fastcgi_cache levels=1:2 keys_zone=fastcgicache:200m inactive=30m;
Added:
Code:#add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
For HTTP Strict Transport Security (HSTS).
More info why it's needed to be added again: https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/
fastcgi_cache_methods GET;