We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34905fc commit 40a5a93Copy full SHA for 40a5a93
doc/api/zlib.md
@@ -107,6 +107,8 @@ const http = require('http');
107
const fs = require('fs');
108
http.createServer((request, response) => {
109
const raw = fs.createReadStream('index.html');
110
+ // Store both a compressed and an uncompressed version of the resource.
111
+ response.setHeader('Vary: Accept-Encoding');
112
let acceptEncoding = request.headers['accept-encoding'];
113
if (!acceptEncoding) {
114
acceptEncoding = '';
0 commit comments