mirror of
https://github.com/nextcloud/documentation.git
synced 2025-08-20 14:15:54 +00:00
Merge pull request #12028 from nextcloud/admin/webp
feat(admin): Add note about `webp` static assets
This commit is contained in:
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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
|
||||
-----------------------
|
||||
|
||||
|
Reference in New Issue
Block a user