You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Website][Docs] Version selector on the published docs for 13.0.0 seems broken #37357
Describe the bug, including details regarding any error messages, version, and platform.
There seems to be something wrong with the version selector for the docs (https://arrow.apache.org/docs/index.html):
Release 13.0.0 is released and should appear as stable.
If I click on the 12.0.0(stable) version selector, I get the 13.0.0 docs but there is no link to 12.0.0 on the selector apart from that.
Oh! I see, this is cached and we require a hard refresh. I am wondering if we can ask INFRA if they can set some headers for non-caching on some files like this one or if it is not worth it. edit as a clarification, with a hard refresh it works for me now:
I think the exact implementation is being changed in #36591 (now using the sphinx theme's upstream one), so if we want to look into it, might be better to do that afterwards.
I also don't know if we want to disable caching, as for most of the time, the caching actually is beneficial (although I don't know how important this is, given it's a small file)
Activity
raulcd commentedon Aug 24, 2023
@thisisnic @jorisvandenbossche @AlenkaF I know you worked on this in the past (or something related). Any idea of what happened?
AlenkaF commentedon Aug 24, 2023
One thing I noticed is that the
versions.jsonfile was not updated here: https://arrow.apache.org/docs/_static/versions.json and this is the file from where the data gets pulled into the version warnings and I think also to the version switcher.It just changed now though =)
AlenkaF commentedon Aug 24, 2023
And the issue on the site is fixed ...
jorisvandenbossche commentedon Aug 24, 2023
Do a "hard" refresh of the page. The versions.json file is cached by your browser, and so the dropdown still shows the old versions. But the file itself is correctly updated, I think: https://github.com/apache/arrow-site/blob/asf-site/docs/_static/versions.json
raulcd commentedon Aug 24, 2023
Oh! I see, this is cached and we require a hard refresh. I am wondering if we can ask INFRA if they can set some headers for non-caching on some files like this one or if it is not worth it.

edit as a clarification, with a hard refresh it works for me now:
kou commentedon Aug 25, 2023
If we want to disable caching, we can use
fetch()'scache: "no-cache"option: https://developer.mozilla.org/en-US/docs/Web/API/fetchNote that we're using jQuery's
$.getJSON()notfetch():arrow/docs/source/_static/versionwarning.js
Line 21 in c927520
jorisvandenbossche commentedon Aug 25, 2023
I think the exact implementation is being changed in #36591 (now using the sphinx theme's upstream one), so if we want to look into it, might be better to do that afterwards.
I also don't know if we want to disable caching, as for most of the time, the caching actually is beneficial (although I don't know how important this is, given it's a small file)
kou commentedon Aug 28, 2023
I think that we don't need to disable cache because this will be fixed (the cache will be expired) eventually.
raulcd commentedon Aug 28, 2023
That makes sense to me. I am closing the issue.