Cached responses do not incur wallet charges.
Controlling cache behavior
Use theX-Accept-Cache header to control whether you want cached or fresh data:
Controls cache behavior for the request:
true— Return cached response if availablefalse— Bypass cache and fetch fresh data from origin
Cache status header
TheX-Cache response header indicates the caching status:
| X-Cache value | Description |
|---|---|
Hit from Cloudfront | Response served from cache |
Miss from Cloudfront | Fresh response, now cached for future requests |
Error from Cloudfront | Non-2XX response, not cached |