Public library /dist/core-common.js is very large!

I’m running Nextcloud for more than a year now on my own server. But i noticed a very high bandwidth usage lately. Even when no shares were open. When checking the apache_access.log with the goaccess tool, the report shows that /dist/core-common.js?v=9b57c404-0 had transferred 283.4 MB in 48 hours (22 requests to this file); core-common.js is 13.5 MB

Why is this publicly accessible js library so big? This is not normal right?
This is creating very high bandwidth demands. How to reduce file size or bandwidth?

Nextcloud version: 25.0.6
Operating system and version: Ubuntu 22.04
Apache or nginx version: Apache 2.4.25
PHP version: 8.0

Yes that file size is normal. It’s a bundle of a bunch of core client side Nextcloud code. It’s necessary to function.

Browsers will request it periodically.

Thank you for the reply! Good to know that the file size is normal.

But thinking about it: this file should better be only requested when users are logged in!
Visitors should not just request these kinds of libraries. That would be better for managing a low bandwidth profile.

(…and maybe some tiny library if needed for the login screen)

That’s an interesting idea.

Might be worth making the suggestion here as a Feature Request in a new Issue:

I took your suggestion and did an enhancement request: Enhancement for public accessible core-common.js · Issue #38502 · nextcloud/server · GitHub

When you agree, give this issue a thumbs up :slight_smile: