Miss from cloudfront
See original GitHub issueShould this be showing a hit from cloudfront if configured correctly?
This is what I have and doesn’t seem to be caching:
custom:
splitStacks:
perFunction: true
perType: true
warmup:
enabled: true
events:
- schedule: rate(15 minutes)
prewarm: true
apiGatewayXray: false
baseUrl: v1
prune:
automatic: true
number: 2
apiGatewayCaching:
enabled: true
plugins:
- serverless-plugin-split-stacks
- serverless-plugin-warmup
- serverless-prune-plugin
- serverless-api-gateway-caching
For functions:
getStats:
handler: src/functions/reports.getStats
events:
- http:
path: ${self:custom.baseUrl}/reports/stats
method: get
private: true
cors: true
caching:
enabled: true
Thank you!
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Troubleshoot the CloudFront distribution “X-Cache:Miss from ...
After an object is requested through CloudFront, the object is cached only in the edge location that received the request. If a subsequent ......
Read more >How to fix X-cache: Miss from Cloudfront | InfinityPP
Fixing Cloudfront miss can be a time-consuming task. But, if you are receiving “Miss from Cloudfront” this is usually because of the headers...
Read more >Troubleshooting error "X-Cache: Miss from CloudFront"
Once the object is requested through CloudFront, it is cached in the edge location that got the request. In case another request is...
Read more >Understanding the cache key - Amazon CloudFront
If the requested object is not in the cache (a cache miss), then CloudFront sends a request to the origin to get the...
Read more >x-cache: Miss from cloudfront in AWS - Stack Overflow
1 Answer 1 · A user requests a resource (eg HTML page or an image) via a CloudFront URL · The request is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just a follow up to this, when this enabled, should the stage settings in API Gateway have Cache enabled?
@DianaIonita Thanks for this, tried this out, but it’s not working. Should API Cache be enabled within API Gateway? With this enabled, it caches everything, without regard to the settings, with it disabled, just no dice.