We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2842c2d commit 8347bceCopy full SHA for 8347bce
config/openresty/tests/basic.js
@@ -77,6 +77,14 @@ describe("cacher", function () {
77
expect(await this.listCache({ watch: false })).toEqual([]);
78
});
79
80
+ it("can purge multiple hosts", async function () {
81
+ const purgeResponse = await fetch(this.origin + "/purge?host=example1.com&host=example2.com");
82
+ const purgeText = await purgeResponse.text();
83
+
84
+ expect(purgeResponse.status).toBe(200);
85
+ expect(purgeText.trim()).toBe("example1.com: 0\nexample2.com: 0");
86
+ });
87
88
it("purges a large number of cached requests", async function () {
89
const number_of_requests = 500;
90
0 commit comments