Merge pull request #22 from cloudflare/sven/remove-instance-cache

remove caching from /api/v1/instance
pull/27/head
Sven Sauleau 2023-01-06 11:02:15 +00:00 zatwierdzone przez GitHub
commit 194b4f626e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 0 dodań i 2 usunięć

Wyświetl plik

@ -35,7 +35,6 @@ describe('Mastodon APIs', () => {
assert.equal(res.status, 200)
assertCORS(res)
assertJSON(res)
assertCache(res, 180)
{
const data = await res.json<any>()

Wyświetl plik

@ -12,7 +12,6 @@ export async function handleRequest(domain: string, db: D1Database) {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': 'content-type, authorization',
'content-type': 'application/json; charset=utf-8',
'cache-control': 'max-age=180, public',
}
const query = `