PERF: Add text/javascript to NGINX gzip_types

PERF: Add text/javascript to NGINX gzip_types

diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf
index 48bb7a3..9c87fa3 100644
--- a/config/nginx.sample.conf
+++ b/config/nginx.sample.conf
@@ -39,7 +39,7 @@ server {
   gzip_vary on;
   gzip_min_length 1000;
   gzip_comp_level 5;
-  gzip_types application/json text/css application/x-javascript application/javascript image/svg+xml;
+  gzip_types application/json text/css text/javascript application/x-javascript application/javascript image/svg+xml;
   gzip_proxied any;
 
   # Uncomment and configure this section for HTTPS support

GitHub sha: 56820a5f

1 Like

What was the context for this?

@Falco noticed that theme javascripts were not being compressed. I should have included more info in the commit message, apologies.

3 Likes