Scheduling infrastructure for absolutely everyone.
Remove cache-control and disable cache (#12517)
Alex van Andel0ddefaa141b5
diff --git a/apps/web/pages/api/user/avatar.ts b/apps/web/pages/api/user/avatar.tsindex da86db7bac7..11512759fd8 100644--- a/apps/web/pages/api/user/avatar.ts+++ b/apps/web/pages/api/user/avatar.ts@@ -105,8 +105,6 @@ async function getIdentityData(req: NextApiRequest) {export default async function handler(req: NextApiRequest, res: NextApiResponse) {const identity = await getIdentityData(req);const img = identity?.avatar;- // We cache for one day- res.setHeader("Cache-Control", "s-maxage=86400, stale-while-revalidate=60");// If image isn't set or links to this route itself, use default avatarif (!img) {if (identity?.org) {