From 791ba794e862b6ecbe4b0d18f4e82bef03fb734d Mon Sep 17 00:00:00 2001 From: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Date: Mon, 10 Jun 2024 20:58:02 -0700 Subject: [PATCH] add `BUN_FEATURE_FLAG_LAST_MODIFIED_PRETEND_304` (#11767) --- src/install/install.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install/install.zig b/src/install/install.zig index 21f1126aad..852fbd91ec 100644 --- a/src/install/install.zig +++ b/src/install/install.zig @@ -464,7 +464,7 @@ const NetworkTask = struct { } // Incase the ETag causes invalidation, we fallback to the last modified date. - if (last_modified.len != 0) { + if (last_modified.len != 0 and bun.getRuntimeFeatureFlag("BUN_FEATURE_FLAG_LAST_MODIFIED_PRETEND_304")) { this.http.client.force_last_modified = true; this.http.client.if_modified_since = last_modified; }