Beginning Amazon Web Services with Node.js by Shackelford Adam & Shackelford Adam

Beginning Amazon Web Services with Node.js by Shackelford Adam & Shackelford Adam

Author:Shackelford, Adam & Shackelford, Adam [Shackelford, Adam]
Language: eng
Format: azw3
ISBN: 9781484206546
Publisher: Apress
Published: 2015-03-18T04:00:00+00:00


Caching

Now it’s time to see CloudFront’s caching in action. Make another POST request to /photos/upload, this time with the caption “Hello London.” Then, make another GET request to /photos/search?query=Hello. The response should be lightning fast, but if you look closely at the JSON, you will not see your most recent photo, “Hello London.” This is because after the first request, CloudFront is now storing a cached object for the address /photos/search?query=Hello. It will continue to send the same response to all requests for this URL, until the object expires. But when does it expire?

Each object stored in the cache is linked to a behavior, and its expiration is determined by the value of several fields in the corresponding behavior, shown in Figure 4-12.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.