Bob Mottram 7 gadus atpakaļ
vecāks
revīzija
99013eedbc
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5
    0
      src/freedombone-app-cryptpad

+ 5
- 0
src/freedombone-app-cryptpad Parādīt failu

@@ -421,6 +421,11 @@ function install_cryptpad_main {
421 421
     echo '' >> $cryptpad_nginx_site
422 422
     echo '  index index.html;' >> $cryptpad_nginx_site
423 423
     echo '' >> $cryptpad_nginx_site
424
+    echo '  if ($args ~ ver=) {' >> $cryptpad_nginx_site
425
+    echo '      set $cacheControl max-age=31536000;' >> $cryptpad_nginx_site
426
+    echo '  }' >> $cryptpad_nginx_site
427
+    echo '  add_header Cache-Control $cacheControl;' >> $cryptpad_nginx_site
428
+    echo '' >> $cryptpad_nginx_site
424 429
     echo '  add_header X-XSS-Protection "1; mode=block";' >> $cryptpad_nginx_site
425 430
     echo '  add_header X-Content-Type-Options nosniff;' >> $cryptpad_nginx_site
426 431
     echo '  add_header X-Frame-Options SAMEORIGIN;' >> $cryptpad_nginx_site