Files
nextcloud-docs/admin_manual/installation
MichaIng 4ef607d350 nginx: fix response headers for assets
Nginx resets all response headers in a location block, if it contains any "add_header" directive. When setting the "Cache-Control" header for static assets, this was originally worked around by using the "expires" directive instead. https://github.com/nextcloud/documentation/pull/8083 however added the "immutable" flag for assets with "v=" query parameter and broke all other response headers for assets that way.

This commit fixes this by re-adding all reponse headers explicitly for those assets. Originally those doubled code was removed thanks to using "expires", but I see no way to have both: the "immutable" flag as well as avoiding doubled headers via "expires" directive.

Additionally, this commit avoids the trailing comma and space in the Cache-Control header for assets without "v=" query parameter, and adds sets the wasm MIME type in a cleaner/more consistent way together with js/mjs, and rephrases the broken comment sentence.

Signed-off-by: MichaIng <micha@dietpi.com>
2024-01-26 17:10:58 +01:00
..
2020-03-28 23:29:46 +01:00
2023-12-28 09:45:11 +00:00
2023-09-28 13:10:47 +02:00
2024-01-19 17:25:55 +00:00
2023-09-29 17:46:14 +01:00