![]() ![]() Extend the Minimum TTL, Maximum TTL, or Default TTL for path patterns that need more time in the cache before CloudFront queries the origin.If your origin returns two objects and they differ only by the values in the Set-Cookie header, CloudFront caches only one version of the object. Note: For web distributions, CloudFront by default doesn't consider cookies when caching objects in edge locations. ![]() For static content, avoid caching based on cookies, query strings, or headers that aren't necessary for the origin to serve the content. Verify that you have separate cache behaviors for static content (for example, CSS files) that rarely change and for dynamic content (for example, JavaScript files) that change often.Don't forward all headers, all cookies, or all query strings, because this directs CloudFront to pass through requests instead of caching them.To avoid latency from forwarding requests to the origin, check the following to be sure that requests can be served from CloudFront edge locations: "Miss" requests might be slower to load because of the additional step of forwarding to the origin. CloudFront returns "X-Cache:Hit from cloudfront" when requests are served from the closest edge location. CloudFront returns "X-Cache:Miss from cloudfront" when the request is sent to the origin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |