Commits

Ales Zoulek  committed 9a7788e

caching right location

  • Participants
  • Parent commits 861a91e

Comments (0)

Files changed (1)

File conf/nginx/ng_proxy_test.conf

 
 	location @ng_proxy_test_master_fallback{
 		proxy_pass http://ng_proxy_test_master;
-
-		# cache on disk
-		proxy_cache ng_proxy_test_master_cache;
-		proxy_cache_valid  200 302  20s;
-		proxy_cache_valid  404      10s;
-
 	}
 	location @ng_proxy_test_comments_fallback{
 		proxy_pass http://ng_proxy_test_comments;
 	}
+
 	location / {
+		proxy_pass http://ng_proxy_test_master;
+		# cache on disk
+		proxy_cache ng_proxy_test_master_cache;
+		proxy_cache_valid  200 302  20s;
+		proxy_cache_valid  404      10s;
 	}
 	location /ssi/comments/ {
 		set            $redis_key $uri;