Accudio / async-alpine

Async Alpine brings advanced code splitting and lazy-loading to Alpine.js components!
https://async-alpine.dev
Apache License 2.0
152 stars 12 forks source link

Idle strategy always loaded from cache despite hard reload #23

Closed iniznet closed 1 year ago

iniznet commented 1 year ago

I found out that when the component strategy is set to idle it always loaded from the cache despite me pressing hard reload in the browser. Any idea?

image

Accudio commented 1 year ago

Could you make a reduced test case? I'm not seeing the same issue in tests/strategies/idle but it may be depending on implementation.

Also helpful would be how you're loading Async Alpine (imported into bundle, script, cdn etc), how you specify the component download (dynamic import or ax-load-src) and browser details.

Thanks!

iniznet commented 1 year ago

After some review, I'm unable to reproduce the issue with my test case, so I think there's something that went wrong within the WordPress environment itself like the default cache control policy. I will close the issue as it's not related to the library.