On Wed, 22 Jan 2020 14:43:45 +0100 David L <er_ma...@darkbolt.net> wrote:
> Apparently, gitlab is not serving cached assets.
> 
> That's result on a very long loading time.
> 
> Example of most relevant file: 
> 
> Cached:
> 
> 304 Not Modified 
> https://salsa.debian.org/assets/webpack/main.b91d0a07.chunk.js <-- 2,55mb, 
> 849ms load time
> 304 Not Modified 
> https://assets.gitlab-static.net/assets/webpack/main.45f98342.chunk.js <-- 
> 0b, 42ms load time
> 
> My installation:
> 
> 200 OK https://git.myserver.net/assets/webpack/main.chunk.js <-- 20.87mb, 
> 12135ms load time

I think this is due to the environment variable NODE_ENV not being set
to "production" when the assets building command is called.

I’m currently experimenting a bit to find a way to reliably pass this
variable to any rake command, but in the meantime it would be nice to
know if the maintainers team has some advice on this front.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to