Search code examples
htmlcachingcloudamazon-cloudfront

CloudFront Cache HTML


Can Amazon CloudFront be used to cache HTML pages, and no just image, css files, etc?

If not, is there a comparable service out there that does this? I.E., I overlay the service on a domain, and literally it only queries that site again, when the cached page has expired.

I looked at CloudFlare as well and they don't yet do this.


Solution

  • Yes, you can serve HTML through CloudFront as long as you don't mind every user getting the same content until the cache expires.

    I can't imagine a CDN that would not support this. They might not advertise it since many web sites are dynamic and can't be cached, but if your site is basically static, then any CDN should work.