A website serves versioned JavaScript files through CloudFront from S3. Filenames change whenever contents change, and each version can be cached for one year. The origin is receiving excessive requests because the files currently expire from caches after seconds. Which change best improves delivery efficiency?

  1. Set long appropriate Cache-Control lifetimes and configure the CloudFront cache policy's TTL bounds to permit those lifetimes.
  2. Forward every possible header and cookie and use a zero maximum TTL.
  3. Invalidate all JavaScript objects every minute regardless of content changes.
  4. Set Cache-Control: no-store on every JavaScript response.
Sign in to start exam

Exam