-
Notifications
You must be signed in to change notification settings - Fork 12
doc: strange redirects #75
Comments
Weird! I wonder if has something to do with the fact that cml.dev and dvc.org are deployed with S3, while mlem.ai is just deployed with Heroku 🤔 |
@rogermparent should have more context on this - it's a combination of gatsby setup, redirects.json, and may be express that we are running. |
mlem.ai currently isn't using Express, it's just heroku-buildpack-static with a plugin that generates a more standard redirects file based on Gatsby's Based on that, there's only a few places the redirect could be coming from:
If I were to blindly guess I'd check CloudFlare first, but I don't have permissions there so someone who does will have to check in my place. |
Now that I look at it again, this is doing the opposite of what we usually configure for (redirect from unslashed to slashed). That almost certainly rules out CloudFlare unless we grossly misconfigured it. In checking
It seems like that issue nor this PR that seems to fix it has gotten any traction with the buildpack's maintainers, so unfortunately it seems the solution to this is to take it into our own hands and somehow switch away from
It's no secret that I'm a fan of the third option, but we can implement any of these to fix this issue. |
@rogermparent thanks! can we make it consistent / same as dvc.org (and apply across all the websites for consistency)? |
Sure! We were already thinking about adding an Express server so we can bump that up in priority with this issue in mind. |
One more for @iterative/websites 😬
Load any docs URL e.g. https://mlem.ai/doc and keep an eye in the address bar. A trailing
/
flashes really fast. Network activity:A bit worrying that it's using 301s which browsers don't really ever want to forget from their caches so the least people get this the better.
Replicated in https://www.webpagetest.org/result/220524_BiDcB6_GK3/1/details/#waterfall_view_step1
The text was updated successfully, but these errors were encountered: