Skip to content

Commit 9600ca4

Browse files
committed
More headers
1 parent df311ea commit 9600ca4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/components_guide_web/live/latency_comparison.ex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,20 @@ defmodule ComponentsGuideWeb.LatencyComparisonLive do
4343
cache_control = Enum.find(h, fn {key, _} -> String.downcase(key) == "cache-control" end)
4444
server = Enum.find(h, fn {key, _} -> String.downcase(key) == "server" end)
4545
cf_ray = Enum.find(h, fn {key, _} -> String.downcase(key) == "cf-ray" end)
46+
cf_cache_status = Enum.find(h, fn {key, _} -> String.downcase(key) == "cf-cache-status" end)
47+
x_vercel_cache = Enum.find(h, fn {key, _} -> String.downcase(key) == "x-vercel-cache" end)
48+
x_vercel_id = Enum.find(h, fn {key, _} -> String.downcase(key) == "x-vercel-id" end)
4649
inspect([
4750
location,
4851
content_length,
4952
content_encoding,
5053
transfer_encoding,
5154
cache_control,
5255
server,
53-
cf_ray
56+
cf_ray,
57+
cf_cache_status,
58+
x_vercel_cache,
59+
x_vercel_id
5460
] |> Enum.filter(fn v -> v != nil end))
5561
end
5662
end

0 commit comments

Comments
 (0)