简单的javascript文件使用cloudfront返回301

时间:2015-01-23 07:24:41

标签: amazon-web-services amazon-cloudfront

我使用cloudfront获取以下简单的javascript资源:

https://d1syjrf5lltxmn.cloudfront.net/Content/JavaScript/jquery-migrate-1.2.1.min.js

我已将Origin域名和路径设置为

www.siliconvalley-codecamp.com

Origin类型是自定义源,策略是sMatch Viewer,查看策略是http和https。问题是当它遇到这个(一遍又一遍)时,它会一直返回301并从我的原始服务器做另一个请求。

我无法弄清楚为什么一直在做301。我已经读过其他有问题但却无法找到解决方案的人。

GET https://d1syjrf5lltxmn.cloudfront.net/Content/JavaScript/jquery-migrate-    1.2.1.min.js HTTP/1.1
Host: d1syjrf5lltxmn.cloudfront.net
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36
DNT: 1
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8

并且返回:

HTTP/1.1 301 Moved Permanently
Content-Type: text/html; charset=UTF-8
Content-Length: 208
Connection: keep-alive
Location: https://www.siliconvalley-codecamp.com/Content/JavaScript/jquery-migrate-1.2.1.min.js
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2015 04:18:21 GMT
Age: 10575
X-Cache: Hit from cloudfront
Via: 1.1 f86dab587205f74a0e6f36b42207dec2.cloudfront.net (CloudFront)
X-Amz-Cf-Id: 8h4R0WTOl1wg8LDafMoeAkcvOr1G8ujfAVMgz84Uy_BVE8QlxTbTrQ==

<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a     HREF="https://www.siliconvalley-codecamp.com/Content/JavaScript/jquery-migrate- 1.2.1.min.js">here</a></body>

原始服务器设置:

enter image description here

0 个答案:

没有答案