feat(admin): Add note about webp static assets

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen
2024-07-17 14:02:04 +02:00
parent 17ecda3c77
commit 64cfff1db8
3 changed files with 8 additions and 2 deletions

View File

@@ -165,7 +165,7 @@ server {
}
# Serve static files
location ~ \.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map|ogg|flac)$ {
location ~ \.(?:css|js|mjs|svg|gif|ico|jpg|png|webp|wasm|tflite|map|ogg|flac)$ {
try_files $uri /index.php$request_uri;
# HTTP response headers borrowed from Nextcloud `.htaccess`
add_header Cache-Control "public, max-age=15778463$asset_immutable";

View File

@@ -164,7 +164,7 @@ server {
}
# Serve static files
location ~ \.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map|ogg|flac)$ {
location ~ \.(?:css|js|mjs|svg|gif|ico|jpg|png|webp|wasm|tflite|map|ogg|flac)$ {
try_files $uri /nextcloud/index.php$request_uri;
# HTTP response headers borrowed from Nextcloud `.htaccess`
add_header Cache-Control "public, max-age=15778463$asset_immutable";

View File

@@ -9,6 +9,12 @@ System requirements
* PHP 8.0 is no longer supported.
* PostgreSQL 9.4 is no longer supported.
Web server configuration
------------------------
Make sure that your web server is serving files with the ``webp`` extension (WebP images) correctly as static assets.
This is included in the shipped ``.htaccess`` file but if you use another web server or custom configuration you need to check this manually.
Nextcloud configuration
-----------------------