Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Move add header higher up

Daoud Clarkec2055329afca
diff --git a/nginx.conf.sigil b/nginx.conf.sigil
index 4ac2455..65e22a4 100644
--- a/nginx.conf.sigil
+++ b/nginx.conf.sigil
@@ -40,11 +40,10 @@ server {
{{ if and (eq $.SPDY_SUPPORTED "true") (ne $.HTTP2_SUPPORTED "true") }}add_header Alternate-Protocol {{ $.PROXY_SSL_PORT }}:npn-spdy/2;{{ end }}
proxy_cache custom_cache;
+ add_header 'X-Proxy-Cache' 'Test';
location / {
- add_header 'X-Proxy-Cache' 'Test';
-
## Start CORS here. See http://enable-cors.org/server_nginx.html for comments
if ($request_method = 'OPTIONS') {