dash icon indicating copy to clipboard operation
dash copied to clipboard

Chrome not loading CSS when hosted remotely [BUG]

Open Zylatis opened this issue 6 years ago • 2 comments

I have a bit of a weird bug. If I run the app locally and view through Firefox or Chrome the CSS loads correctly and everything looks great.

If i host remotely and just tunnel/expose the URL via ngrok, the same, works on both.

However currently I am hosting remotely and using a URL redirect from AWS -> Azure and now for some reason the CSS won't load on Chrome but it does on Firefox.

The error chrome gives is

Failed to load resource: net::ERR_TOO_MANY_RETRIES

Which is really weird because it doesn't seem to be trying very hard or very often at all! In particular looking at the server output i see a 304 for the CSS file from the Firefox request but not from Chrome, any ideas? (also kind of curious that only one triggers the pandas warning...)

I suspect it's a caching thing that I don't understand chrome2 firefox2

Thanks! -Z

Zylatis avatar Oct 29 '19 03:10 Zylatis

oof, a browser-dependent difference handling URL redirects, as it relates to one route (or resource class perhaps) but not others... I don't really know where to start. It's conceivable that this will be fixed by the upcoming dash 1.5 release, that moves the cache-busting string from query params into the file names? Otherwise I'd suggest posting this in https://community.plot.ly/c/dash, someone there may have an idea.

alexcjohnson avatar Oct 29 '19 13:10 alexcjohnson

I am having the same problem right now. If you have any solution plz help me with that too.

cyanmagar avatar Aug 10 '22 13:08 cyanmagar