You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
Following the docs in the Readme there is a section about how to set the ttl
myNextApplication:
component: serverless-next.js
inputs:
cloudfront:
# this is the cache behaviour for next.js api pages
api:
ttl: 10
Cloudfront actually has the options for setting min, max, and default ttl times in the UI:
How would I go about setting the Max TTL only to 31536000?
It seems this was supposed to be fixed in PR #282 since it enables "all cloudfront inputs" but these are missing. Looking through the code, it seems to be a limitation in aws-cloudfront inputs
Following the docs in the Readme there is a section about how to set the
ttlCloudfront actually has the options for setting min, max, and default ttl times in the UI:
How would I go about setting the Max TTL only to 31536000?
It seems this was supposed to be fixed in PR #282 since it enables "all cloudfront inputs" but these are missing. Looking through the code, it seems to be a limitation in aws-cloudfront inputs
See how it takes in
ttland then assigns that to min, max, and default? https://github.com/serverless-components/aws-cloudfront/blob/master/lib/getCacheBehavior.jsI have raised an issue there but it doesn't appear to be very active.
Does anyone else have this problem?