1
0
mirror of https://github.com/uetchy/namae.git synced 2025-09-10 10:06:39 +09:00

feat: cache only if the response is succeeded

This commit is contained in:
2019-08-01 13:22:03 +09:00
parent 536e65e10e
commit a8fa8a04d1
12 changed files with 43 additions and 34 deletions

View File

@@ -16,10 +16,7 @@
"routes": [
{
"src": "/availability/(?<provider>[^/]+)/(?<id>[^/]+)",
"dest": "/api/services/$provider.js?name=$id",
"headers": {
"Cache-Control": "maxage=0, s-maxage=3600"
}
"dest": "/api/services/$provider.js?name=$id"
},
{
"src": "/(.*)",