Issue with Assets across apps with the same file name

Hi

I have just noticed an issue with assets for Apps.

We have built 2 different apps that both have are importing app.js and app.css within the schema

{% schema %}
    {
        "name": "Cookease",
        "target": "compliance_head",
        "stylesheet": "app.css",
        "javascript": "app.js",
    }
{% endschema %}
{% schema %}
    {
        "name": "Seasonly",
        "target": "body",
        "stylesheet": "app.css",
        "javascript": "app.js",
    }
{% endschema %}

However, it seems when they are both enable on the same store, you only get one of them loading, and it can be different on each page load.

The CDN links are different, but it only ever loads one of them

I am going to rename the files in one of our apps for now, but this seems like a bug that needs looking into.

Just to add to this, I am also able to replicate this issue.

Hey @AlanHolmes

Is this still happening for you? (thanks for verifying you also see this @strawberry)

If so, was this something that was previously working but is no longer? I’m happy to take a closer look to see what’s going on.

Hi @KyleG-Shopify

I can’t say if it is something that was happening before, as we had not yet had 2 of our apps activated on the same site before we noticed this.

But I have just tested it again, and the JS/CSS assets between 2 apps that have the same file names (app.js and app.css) are still randomly picking one or the other on the store front extensions.

Thanks
Alan