If you are using the configuration for Apache2 or NGINX described in the Server Setup section, the recommended configuration is already in place and no further adjustment is necessary.
If not, all files of the following directories that are delivered directly by the web server should be delivered with a Cache HTTP Header.
The expiration time can be set very high, because HumHub automatically changes the URL in case of an update.
HumHub supports different caching systems which can be configured at:
Administration -> Settings -> Advanced -> Caching.
In addition to those listed caching systems, you can use any Yii2 compatible caching driver.
Configuration file examples:
Redis Cache Example:
Memcached Configuration Example:
X-Sendfile is a feature that allows us to pass file download requests directly by the webserver. This improves the application performance.
If this was configured incorrectly, file downloads won't work, please test the file upload and download after configuring X-Sendfile.
Installation Administration -> Settings -> Files -> Enable X-Sendfile Support.
Apache Config Example:
- Apache: X-Sendfile
- Lighttpd v1.4: X-LIGHTTPD-send-file
- Lighttpd v1.5: X-Sendfile
- Nginx: X-Accel-Redirect
- Cherokee: X-Sendfile and X-Accel-Redirect