question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Miss from cloudfront

See original GitHub issue

Should 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:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
webchazcommented, Mar 17, 2019

Just a follow up to this, when this enabled, should the stage settings in API Gateway have Cache enabled?

0reactions
webchazcommented, Apr 3, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found