We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9576169 commit ffba1a3Copy full SHA for ffba1a3
compose/frontend/default.conf
@@ -24,6 +24,7 @@ gzip_types
24
application/rss+xml
25
application/atom_xml;
26
gzip_disable "MSIE [1-6]\.";
27
+gzip_static on;
28
29
30
server {
compose/frontend/entrypoint
@@ -11,4 +11,7 @@ echo -e "window.ROUTE_PLANNER_KEY='${REACT_APP_ROUTE_PLANNER_KEY}';" >> $MAIN
11
echo -e "window.REPLAY_THE_DAY='${REACT_APP_REPLAY_THE_DAY}';" >> $MAIN
12
13
# Set the environment to be used for caching django content
14
-sed -i "s~{ENVIRONMENT}~$ENVIRONMENT~g" /etc/nginx/conf.d/default.conf
+sed -i "s~{ENVIRONMENT}~$ENVIRONMENT~g" /etc/nginx/conf.d/default.conf
15
+
16
+#gzip the main js file to improve performance
17
+gzip -k $MAIN
0 commit comments