Browse Source

Update v-add-fastcgi-cache

Alexandros Ioannides 5 years ago
parent
commit
514e8f1597
1 changed files with 2 additions and 1 deletions
  1. 2 1
      bin/v-add-fastcgi-cache

+ 2 - 1
bin/v-add-fastcgi-cache

@@ -69,7 +69,8 @@ cat << EOF > $fastcgi
     fastcgi_cache_valid 301 302 10m;
     fastcgi_cache_valid 301 302 10m;
     fastcgi_cache_valid 404 10m;
     fastcgi_cache_valid 404 10m;
     fastcgi_cache_bypass $no_cache;
     fastcgi_cache_bypass $no_cache;
-    fastcgi_no_cache $no_cache;  
+    fastcgi_no_cache $no_cache;
+    set $no_cache 0;
 EOF
 EOF
 
 
 if [ ! -z "$debug" ]; then
 if [ ! -z "$debug" ]; then