#43462 by leafish_dylan, c960657, andypost: simplify and fix compatibility of compression code in page caching