Cloudfront将缓存的页面大小是否有限制,我的某些页面似乎没有在Cloudfront中缓存,或者至少没有使用缓存。
我运行了所要求的测试
ubuntu@ip-172-31-39-147:~$ curl -v -o /dev/null http://d353kg141fc5wg.cloudfront.net/artist/79239441-bfd5-4981-a70c-55c3f15c1287
* Hostname was NOT found in DNS cache
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 54.230.197.199...
* Connected to d353kg141fc5wg.cloudfront.net (54.230.197.199) port 80 (#0)
> GET /artist/79239441-bfd5-4981-a70c-55c3f15c1287 HTTP/1.1
> User-Agent: curl/7.35.0
> Host: d353kg141fc5wg.cloudfront.net
> Accept: */*
>
0 0 0 0 0 0 0 0 --:--:-- 0:00:18 --:--:-- 0< HTTP/1.1 200 OK
< Content-Type: text/html;charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Date: Wed, 22 Apr 2015 19:31:05 GMT
* Server Apache-Coyote/1.1 is not blacklisted
< Server: Apache-Coyote/1.1
< X-Cache: Miss from cloudfront
< Via: 1.1 8792444549c943de8bc09305ff25b8fc.cloudfront.net (CloudFront)
< X-Amz-Cf-Id: j6DgVokc5CAjMTYVe4wM9v2zDxdlLaldX-oFZ7aPabQp4CroNh_bwg==
<
0 0 0 0 0 0 0 0 --:--:-- 0:00:18 --:--:-- 0{ [data not shown]
100 14.4M 0 14.4M 0 0 634k 0 --:--:-- 0:00:23 --:--:-- 3337k
* Connection #0 to host d353kg141fc5wg.cloudfront.net left intact
ubuntu@ip-172-31-39-147:~$ curl -v -o /dev/null http://d353kg141fc5wg.cloudfront.net/artist/79239441-bfd5-4981-a70c-55c3f15c1287
* Hostname was NOT found in DNS cache
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 54.230.196.189...
* Connected to d353kg141fc5wg.cloudfront.net (54.230.196.189) port 80 (#0)
> GET /artist/79239441-bfd5-4981-a70c-55c3f15c1287 HTTP/1.1
> User-Agent: curl/7.35.0
> Host: d353kg141fc5wg.cloudfront.net
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: text/html;charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Date: Wed, 22 Apr 2015 19:31:05 GMT
* Server Apache-Coyote/1.1 is not blacklisted
< Server: Apache-Coyote/1.1
< Age: 12
< X-Cache: Hit from cloudfront
< Via: 1.1 f8674897ecacd3a8677010df79a9b468.cloudfront.net (CloudFront)
< X-Amz-Cf-Id: Wbmmg36r-AI7pqRmrzlswNZEtvDSMJX3WaKR1WK9xemj3b1Vmuf2QQ==
<
{ [data not shown]
100 14.4M 0 14.4M 0 0 9.9M 0 --:--:-- 0:00:01 --:--:-- 9.9M
* Connection #0 to host d353kg141fc5wg.cloudfront.net left intact
ubuntu@ip-172-31-39-147:~$