fix: improve error caching behavoir (#2211)
This commit ensures that the GraphQL Pat error is not cached in any browser. See https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomment-1282630614.
This commit is contained in:
1 parent
dcc4ccd18c
commit
98f9045f98
5 files changed
+5
-5
No files matched your search
+1
-1
@@ -180,7 +180,7 @@ describe("Test /api/", () => {
|
||||
|
||||
expect(res.setHeader.mock.calls).toEqual([
|
||||
["Content-Type", "image/svg+xml"],
|
||||
["Cache-Control", `no-store`],
|
||||
["Cache-Control", `no-cache, no-store, must-revalidate`],
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user