shouldn’t two versions of each page be created in the cache, one plain html the other gzipped?
Yes, that should be a default behavior, because that’s how nginx gzip_static on;
works: if both uncompressed and compressed files exist nginx will serve compressed one (nginx first looks for uncompressed file and if exists it looks for a compressed one and serves it; if uncompressed file is absent and compressed file is present, nginx won’t serve a compressed one; you can check it with an empty html file and real compressed html file — nginx will serve later).
Dear developers, please add an option to create both uncompressed and compressed files if compression is turned on in settings. Thanks!