fix(): cache-control header

pull/26/head
Hardware 2018-06-22 09:16:19 +02:00
parent 88c96728c5
commit 01abf1feb0
No known key found for this signature in database
GPG Key ID: EC6DF6F90263EDEA
2 changed files with 3 additions and 3 deletions

View File

@ -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 | **UPLOAD_MAX_SIZE** | The maximum size of an uploaded file | *optional* | 50M
| **PHP_MEMORY_LIMIT** | PHP memory limit | *optional* | 128M | | **PHP_MEMORY_LIMIT** | PHP memory limit | *optional* | 128M |
| **OPCACHE_MEMORY_LIMIT** | OPcache memory size in megabytes | *optional* | 128 | **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 ## Installation

View File

@ -107,13 +107,13 @@ http {
location ~* \.(?:css|js)$ { location ~* \.(?:css|js)$ {
expires 7d; expires 7d;
add_header Pragma public; 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)$ { location ~* \.(?:gif|jpe?g|png|ico|otf|eot|svg|ttf|woff|woff2)$ {
expires 30d; expires 30d;
add_header Pragma public; add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate"; add_header Cache-Control "public";
} }
# PHP Backend # PHP Backend