IS-AgroSmart / AgroSmart-Web

1 stars 1 forks source link

(Suspected) timeout when on very slow networks #141

Closed jreyesr closed 3 years ago

jreyesr commented 3 years ago

Seen on the wild on a very slow (~100 kiloBYTES per second) and unstable network, later replicated on the lab. Bug can be replicated by enabling Fast 3G as a throttling profile on Google Chrome.

It looks like chunk-vendors.js is cut mid-transmission and therefore is very likely to have a syntax error.

image

image

Proposed fix: enable compression on the Vue service in Traefik. It may reduce the time to load the chunk-vendors.js file and (hopefully) make the error go away. It would also mean that the app loads faster for everyone!

jreyesr commented 3 years ago

Fix requires adding the following two lines to the Traefik conf (in services/vue/labels in docker-compose.yml):

- "traefik.http.middlewares.vue-compress.compress=true"
- "traefik.http.routers.vue.middlewares=vue-compress"
jreyesr commented 3 years ago

This issue was closed on https://github.com/IS-AgroSmart/AgroSmart-Top/commit/4bab2bbc9dbc85e73633b5ad990611b11d7674d9