Skip to content

Commit

Permalink
Fix handling of Vary Headers in Redis Backend
Browse files Browse the repository at this point in the history
This should fix the bug documented at gitterHQ#12 which ensures that all resources without Vary headers cannot be cached at all by the Redis backend.
  • Loading branch information
cefn authored Nov 12, 2018
1 parent 4cddc47 commit 3dabd92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redis-backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ var JSONBSerializer = require('./jsonb-serializer');
var NullCompressor = require('./null-compressor');

function bufferToString(buffer) {
if (!buffer) return null;
if (typeof buffer === 'string') return buffer;
if (!buffer) return null;

return buffer.toString('utf8');
}
Expand Down

0 comments on commit 3dabd92

Please sign in to comment.