[DRE-maint] Bug#949591: gitlab: Gitlab not serving cached assets

vv221 vv221 at dotslashplay.it
Sat Feb 15 20:06:36 GMT 2020


On Wed, 22 Jan 2020 14:43:45 +0100 David L <er_maqui at 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20200215/fd082ed1/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list