Merge pull request #12028 from nextcloud/admin/webp

feat(admin): Add note about `webp` static assets
This commit is contained in:
Simon L.
2024-07-17 16:10:54 +02:00
committed by GitHub
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
-----------------------