embroider-build / ember-auto-import

Zero config import from npm packages
Other
361 stars 110 forks source link

Dynamic import missing fingerprint URL #595

Open tehmaestro opened 9 months ago

tehmaestro commented 9 months ago

Hi. I am using ember-auto-import 1.12.1 and I have a very weird issue.

When I leave the Dev Tools console opened and I press on Disable cache, the dynamic import that I am using works fine. As soon as I uncheck Disable cache, the fingerprint URL is no longer added, and the chunk.xxxx.js files are being loaded from the root domain. (without /assets, www.domain.com/chunk.xxxx.js)

Any ideas what might cause this issue?

Edit: It sometimes works without the Disable cache check, but randomly.

I confirm that the same vendor.js is being loaded. It happens randomly on Chrome, but I can successfully reproduce this every time in Firefox.

Edi2: I upgraded from 1.5.7 to 1.12.1 and I saw that the publicAssetURL is being read. So I added that and now it works. Still, I'd be very curious to understand what was going on.

void-mAlex commented 9 months ago

most likely a proxy cache along the way or load balancer still caching the old resources