A new version of python3-requests-cache is now available in Debian and Ubuntu that fixes the bug, so we can revert the workaround. This reverts commit 10e16973.