Browse Source

Update nginx.conf

Alexandros Ioannides 5 years ago
parent
commit
0acdf2c791
1 changed files with 1 additions and 0 deletions
  1. 1 0
      install/deb/nginx/nginx.conf

+ 1 - 0
install/deb/nginx/nginx.conf

@@ -137,6 +137,7 @@ http {
     fastcgi_cache_methods GET HEAD;
     fastcgi_cache_methods GET HEAD;
     fastcgi_cache_use_stale updating error timeout invalid_header http_500 http_503;
     fastcgi_cache_use_stale updating error timeout invalid_header http_500 http_503;
     fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
     fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
+    add_header X-FastCGI-Cache $upstream_cache_status;
 
 
     # Cache bypass
     # Cache bypass
     map $http_cookie $no_cache {
     map $http_cookie $no_cache {