We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a lambda function which proxy's several requests under a /v1/pages/{proxy+} path.
/v1/pages/{proxy+}
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
/v1/pages/home
/v1/pages/categories
/v1/pages/categories/:categoryAlias
handler: index.main events: - http: path: '/v1/pages/{proxy+}' method: any cors: true caching: enabled: true
The text was updated successfully, but these errors were encountered:
Hi @cbarlow1993,
You should be able to get per-page caching by specify the proxy as a cache key parameter like so:
proxy
handler: index.main events: - http: path: '/v1/pages/{proxy+}' method: any cors: true caching: enabled: true cacheKeyParameters: - name: request.path.proxy
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: