Closed cbarlow1993 closed 4 years ago
Hi @cbarlow1993,
You should be able to get per-page caching by specify the proxy
as a cache key parameter like so:
handler: index.main
events:
- http:
path: '/v1/pages/{proxy+}'
method: any
cors: true
caching:
enabled: true
cacheKeyParameters:
- name: request.path.proxy
I have a lambda function which proxy's several requests under a
/v1/pages/{proxy+}
path.Is it possible to set individual cache keys for each page underneath it?
Path examples.
/v1/pages/home
/v1/pages/categories
/v1/pages/categories/:categoryAlias