Skip to content
Myr

Merge fix/www-redirect-uncached into main

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by oscabriel · committed by oscabriel · parents d8e72eb, cb55816 · Browse files · 2 files+15 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+15 added−3 removed

  • tests:+9 added−0 removed
  • other:+6 added−3 removed

2 files+15 added−3 removed

modified:apps/web/src/server/addresses.ts+6 added-3 removed
modified:apps/web/test/legacy-redirect.test.ts+9 added
99 unmodified lines
100 ])101 );102 });103104 it("is kept nowhere by the edge, which keys by path alone and would hand it to the bare host", () => {105 const www = new Request("https://www.web-test.example/docs");106 const answered = Option.getOrThrow(canonicalAddress(www));107108 expect(forTheEdge(www, answered).headers.get("cache-control")).toBe(109 KEPT_NOWHERE110 );111 });112113 it("is a 308 for a request that is not a read, so it keeps its method", () => {114 expect(onWww("/oscabriel/datekit", "POST")).toStrictEqual(115 Option.some([308, "https://web-test.example/oscabriel/datekit"])116 );
38 unmodified lines