title: Amazon Cloudfront settings to reduce waiting time
body: <p>UPDATE: This was my mistake, see my comment the below. Now Cloudfront works great with new settings.</p>
  
  <p>Sometimes dns waits 600ms and than it will wait another half second which makes 90kb file waiting more than 1 second. Sometimes pingdom wait time shows even 1 second. If I try another test, it will go sometimes to 90ms all together.</p>
  
  <p>I understand that first request will take more time because cloudfront needs first to take file from our server. I set cache time to 86400 s which means if it should get file from cache for whole 24 hours. But if I try pingdom just 2 hours after first test it will go again very slow.</p>
  
  <p>The below are my results and settings. Am I missing something?
  <a href="https://i.stack.imgur.com/GcYc8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GcYc8.png" alt="enter image description here"></a></p>