Skip to content

Commit c927cdd

Browse files
committed
fix wasm mime
1 parent 05f8e54 commit c927cdd

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

deploy/nginx.conf

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,8 @@ server {
88
gzip on;
99
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/wasm;
1010

11-
# Set correct MIME type for WASM files
12-
location ~* \.wasm$ {
13-
add_header Content-Type application/wasm;
14-
add_header Cache-Control "public, max-age=31536000, immutable";
15-
}
16-
17-
# Cache static assets
18-
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
11+
# Cache static assets, including WASM
12+
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|wasm)$ {
1913
add_header Cache-Control "public, max-age=31536000, immutable";
2014
}
2115

0 commit comments

Comments
 (0)