Modulescripts with identical content get cached incorrectly

Modulescripts that have identical script content get cached and assumed to be identical even tho they have different instance names/paths. This can cause unpredicatable behavior and should be fixed ASAP.

File: Bug.rbxl (58.8 KB)

Expected behavior

Only exactly identical ModuleScripts should be cached into one (including the path)

Thank you for the report.

To save memory, we have to cache scripts with identical bytecode regardless of where they are in the DataModel.
This can result as scripts in different locations all having the same ‘source’ reference in debug.info.

We have no plans to change this behavior.