From 2172878abf1827a6fc9252ff68f2c64e94faff25 Mon Sep 17 00:00:00 2001 From: Yasuaki Uechi Date: Wed, 31 Jul 2019 02:08:47 +0900 Subject: [PATCH] feat: caching --- now.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/now.json b/now.json index 7198e0d..fc14531 100644 --- a/now.json +++ b/now.json @@ -16,7 +16,10 @@ "routes": [ { "src": "/availability/(?[^/]+)/(?[^/]+)", - "dest": "/src/services/$provider.js?name=$id" + "dest": "/src/services/$provider.js?name=$id", + "headers": { + "Cache-Control": "maxage=0, s-maxage=3600" + } }, { "src": "/(.*)",