add security headers in NGINX while using fastcgi caching
问题 I am using nginx with fastcgi cache. I want to use security headers on my site. I have already added add header field in my virtual host configurations but I can not get any headers unless I disable add_header X-fastcgi cache $upstream cache status in my fastcgi_main.conf file. virualhost file : } include /etc/nginx/bots.d/blockbots.conf; include /etc/nginx/bots.d/ddos.conf; include /etc/nginx/skip_cache.conf ; include /etc/nginx/purge_location.conf ; include /etc/nginx/gzip_location.conf ;