From 01abf1feb03d70f7e9a0e50cce0d3a54a77dedef Mon Sep 17 00:00:00 2001 From: Hardware Date: Fri, 22 Jun 2018 09:16:19 +0200 Subject: [PATCH] fix(): cache-control header --- README.md | 2 +- rootfs/etc/nginx/nginx.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 40a1ccb..cdb33db 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Flarum is the next-generation forum software that makes online discussion fun. I | **UPLOAD_MAX_SIZE** | The maximum size of an uploaded file | *optional* | 50M | **PHP_MEMORY_LIMIT** | PHP memory limit | *optional* | 128M | | **OPCACHE_MEMORY_LIMIT** | OPcache memory size in megabytes | *optional* | 128 -| **LOG_TO_STDOUT** | Enable web server logs to stdout | *optional* | false +| **LOG_TO_STDOUT** | Enable nginx and php error logs to stdout | *optional* | false ## Installation diff --git a/rootfs/etc/nginx/nginx.conf b/rootfs/etc/nginx/nginx.conf index 7e4d50f..d3bf5cf 100644 --- a/rootfs/etc/nginx/nginx.conf +++ b/rootfs/etc/nginx/nginx.conf @@ -107,13 +107,13 @@ http { location ~* \.(?:css|js)$ { expires 7d; add_header Pragma public; - add_header Cache-Control "public, must-revalidate, proxy-revalidate"; + add_header Cache-Control "public"; } location ~* \.(?:gif|jpe?g|png|ico|otf|eot|svg|ttf|woff|woff2)$ { expires 30d; add_header Pragma public; - add_header Cache-Control "public, must-revalidate, proxy-revalidate"; + add_header Cache-Control "public"; } # PHP Backend