nixos/nginx: add application/javascript to compressMimeTypes

Although deprecated, this MIME type is still used by various
applications and web frameworks which are potentially proxied by nginx.

Examples:
- Apps based on ASP.NET Core
- Apps based on http.server (Python)
This commit is contained in:
Erik Arvstedt 2023-09-10 13:43:45 +02:00
parent 6bb4538e5d
commit 7ce5fa1a82
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -35,6 +35,7 @@ let
compressMimeTypes = [
"application/atom+xml"
"application/geo+json"
"application/javascript" # Deprecated by IETF RFC 9239, but still widely used
"application/json"
"application/ld+json"
"application/manifest+json"