Skip to content

Commit 3c8bb29

Browse files
committed
use lazy serialization when etag is passed
1 parent 0cc84d8 commit 3c8bb29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cache/FileCachePlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class FileCachePlugin {
173173
(identifier, etag, data) => {
174174
const entry = {
175175
identifier,
176-
data: store === "pack" ? data : () => data,
176+
data: etag ? () => data : data,
177177
etag,
178178
version
179179
};

0 commit comments

Comments
 (0)