Skip to content

Commit 1ef2afc

Browse files
committed
fix(admin): Nginx: Change mimetype from application/javascript to text/javascript
* See also https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#textjavascript Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 5867d68 commit 1ef2afc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

admin_manual/installation/nginx-root.conf.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ server {
5757
gzip_comp_level 4;
5858
gzip_min_length 256;
5959
gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
60-
gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/wasm application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
60+
gzip_types application/atom+xml text/javascript application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/wasm application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
6161

6262
# Pagespeed is not supported by Nextcloud, so if your server is built
6363
# with the `ngx_pagespeed` module, uncomment this line to disable it.
@@ -86,7 +86,7 @@ server {
8686
# only for Nextcloud like below:
8787
include mime.types;
8888
types {
89-
application/javascript js mjs;
89+
text/javascript js mjs;
9090
}
9191

9292
# Specify how to handle directories -- specifying `/index.php$request_uri`

admin_manual/installation/nginx-subdir.conf.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ server {
5353
# only for Nextcloud like below:
5454
include mime.types;
5555
types {
56-
application/javascript js mjs;
56+
text/javascript js mjs;
5757
}
5858

5959
location = /robots.txt {
@@ -89,7 +89,7 @@ server {
8989
gzip_comp_level 4;
9090
gzip_min_length 256;
9191
gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
92-
gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/wasm application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
92+
gzip_types application/atom+xml text/javascript application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/wasm application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
9393

9494
# Pagespeed is not supported by Nextcloud, so if your server is built
9595
# with the `ngx_pagespeed` module, uncomment this line to disable it.

0 commit comments

Comments
 (0)