From 71f8a7314a3c30512166624ae0b4b73b8570fb47 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Tue, 18 Jun 2024 18:43:19 +0200 Subject: [PATCH] fix(admin): refine .mjs related NC28 upgrade info To cover rewrites, Cache-Control header, and give a concrete config file for MIME types, as suggested here: https://github.com/nextcloud/documentation/pull/11471#issuecomment-1912212928 Signed-off-by: MichaIng --- admin_manual/release_notes/upgrade_to_28.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/admin_manual/release_notes/upgrade_to_28.rst b/admin_manual/release_notes/upgrade_to_28.rst index 83062436d..5fd9fe19b 100644 --- a/admin_manual/release_notes/upgrade_to_28.rst +++ b/admin_manual/release_notes/upgrade_to_28.rst @@ -12,9 +12,11 @@ Web server configuration ------------------------ * The recommended :ref:`nginx configuration` changed as Nextcloud Talk now serves audio files with ``.ogg`` / ``.flac`` extension, make sure to add these extensions to the list of static files. -* As some core app now make use of JavaScript modules, make sure your web server is serving ``.mjs`` files with JavaScript MIME type. - When using Apache with ``.htaccess`` configuration this will be done automatically, if your Apache is not configured to use the ``.htaccess`` files make sure ``.mjs`` is added as a file extension for JavaScript in ``conf/mime.types``. - For NGinx please refer to the our recommended :ref:`nginx configuration`. +* As some core app now make use of JavaScript modules, make sure your web server is not rewriting requests to ``.mjs`` files, but serves them with ``text/javascript`` MIME type and proper ``Cache-Control`` header, like ``.js`` and other static file extensions. + + * When using Apache with ``.htaccess`` configuration, this will be done automatically. + * For Nginx, please refer to our recommended :ref:`Nginx configuration`. + * For other setups, make sure to add ``.mjs`` to the list of static file extensions in web server configs and in case define its MIME type in ``/etc/mime.types``. Monitoring ----------