Skip to content

Commit

Permalink
cf-cache-level is the wrong header use cacheLevel instead (#2986)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaAtulTewari authored Oct 23, 2024
1 parent 1bb0c1d commit 4404bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workerd/api/http.c++
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ kj::Maybe<kj::String> Request::serializeCfBlobJson(jsg::Lock& js) {
switch (cacheMode) {
case CacheMode::NOSTORE:
ttl = -1;
obj.set(js, "cf-cache-level", js.str("byc"_kjc));
obj.set(js, "cacheLevel", js.str("bypass"_kjc));
break;
case CacheMode::NOCACHE:
ttl = 0;
Expand Down

0 comments on commit 4404bf1

Please sign in to comment.