外贸网站建设时怎么样做好服务器这一步
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">服务器返回的14种<span style="color: black;">平常</span>HTTP状态码</span></strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">当<span style="color: black;">咱们</span>从客户端向服务器发送请求时,服务器向<span style="color: black;">咱们</span>返回状态码,状态码<span style="color: black;">便是</span>告诉<span style="color: black;">咱们</span>服务器响应的状态 ,<span style="color: black;">经过</span>它,<span style="color: black;">咱们</span>就<span style="color: black;">能够</span><span style="color: black;">晓得</span>当前请求是成功了还是<span style="color: black;">显现</span>了什么问题 ,状态码<span style="color: black;">是由于</span>3位数字和<span style="color: black;">原由</span>短语<span style="color: black;">构成</span>的(<span style="color: black;">例如</span>最<span style="color: black;">平常</span>的:200 OK) ,其中<span style="color: black;">第1</span>位数字<span style="color: black;">暗示</span>响应类别,响应类别从1到5分为五种。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;">
<div style="color: black; text-align: left; margin-bottom: 10px;">
<div style="color: black; text-align: left; margin-bottom: 10px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">状态码</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">响应类别</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">原由</span>短语</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">1XX</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">信息性状态码(Informational)</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">服务器正在处理请求</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">2XX</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">成功状态码(Success)</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">请求已正常处理完毕</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">3XX</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">重定向状态码(Redirection)</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">需要进行额外操作以完成请求</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">4XX</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">客户端错误状态码(Client Error)</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">客户端<span style="color: black;">原由</span><span style="color: black;">引起</span>服务器<span style="color: black;">没法</span>处理请求</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">5XX</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">服务器错误状态码(Server Error)</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">服务器<span style="color: black;">原由</span><span style="color: black;">引起</span>处理请求出错</span></p>
</div>
</div>
</div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">以下是最<span style="color: black;">平常</span>的14种代码状态:</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(1) 200 OK <span style="color: black;">暗示</span>请求被服务器正常处理</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">200状态代码200 OK Code</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">HTTP状态代码200 OK是最<span style="color: black;">平常</span>的服务器代码,是成功的HTTP请求的标准响应,这是web页面成功<span style="color: black;">供给</span>时默认返回的内容。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">与响应<span style="color: black;">一块</span>返回的<span style="color: black;">实质</span>成功信息取决于请求中<span style="color: black;">运用</span>的<span style="color: black;">办法</span>,例如:在GET中,响应中发送与请求资源对应的实体。在HEAD中,与请求的资源对应的实体头字段在响应中发送,而不<span style="color: black;">包括</span>任何<span style="color: black;">信息</span>体。在POST中,描述或<span style="color: black;">包括</span>操作结果的实体。在TRACE中,<span style="color: black;">包括</span>终端服务器接收到的请求<span style="color: black;">信息</span>的实体。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(2) 204 No Content <span style="color: black;">暗示</span>请求已成功处理,<span style="color: black;">然则</span><span style="color: black;">无</span>内容返回</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(3) 206 Partial Content <span style="color: black;">暗示</span>服务器<span style="color: black;">已然</span>完<span style="color: black;">成为了</span>部分GET请求</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(4) 301 Moved Permanently 永久重定向,<span style="color: black;">暗示</span>请求的资源<span style="color: black;">已然</span>永久的搬到了其他位置</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">301重定向Redirect 301</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">301重定向是永久重定向。它<span style="color: black;">通告</span>搜索引擎,<span style="color: black;">她们</span>试图<span style="color: black;">拜访</span>的URL已被永久更改。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">当您删除页面或更改url时,它们不会消失,为了避免接收404错误,最好<span style="color: black;">运用</span>301重定向。301重定向将用户和搜索引擎从这些旧url重定向到您指定的新活动页面。这<span style="color: black;">亦</span><span style="color: black;">保证</span>了避免混淆用户,并将搜索结果的权重从这些旧页面传递给新页面。还有<span style="color: black;">有些</span><span style="color: black;">状况</span>下,<span style="color: black;">哪些</span><span style="color: black;">已然</span>链接到旧<span style="color: black;">位置</span>或书签的人会自动进入新<span style="color: black;">位置</span>,搜索引擎<span style="color: black;">能够</span>更新<span style="color: black;">她们</span>的索引。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(5) 302 Found 临时重定向,<span style="color: black;">暗示</span>请求的资源临时搬到了其他位置 ,请求的资源暂时被配到到了新的URI ,和301很像,只<span style="color: black;">不外</span>资源是临时移动,资源在将来可能还会改变。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">302重定向(<span style="color: black;">亦</span><span style="color: black;">叫作</span>为“临时重定向”/“302已找到”)是一种临时更改,在有限的时间内重定向到 所需的页面,直到将其删除。它<span style="color: black;">亦</span><span style="color: black;">能够</span><span style="color: black;">表示</span>为302 found (HTTP 1.1)或临时移动(HTTP 1.0),<span style="color: black;">能够</span> <span style="color: black;">运用</span>meta标签或Javascript完成,而不是<span style="color: black;">拜访</span>服务器文件。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">302 direct在以下<span style="color: black;">状况</span>下非常有用: A/B测试网页性能,<span style="color: black;">得到</span>新页面或更新页面的反馈,<span style="color: black;">同期</span>为浏览者<span style="color: black;">供给</span>一致的体验,而不会对PageRank<span style="color: black;">导致</span>任何影响。但有时<span style="color: black;">亦</span>会<span style="color: black;">导致</span>混淆,并对搜索引擎的可见性产生<span style="color: black;">消极</span>影响。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(6) 303 See Other <span style="color: black;">暗示</span>请求资源存在另一个URI,应<span style="color: black;">运用</span>GET定向获取请求资源 ,303功能与302<span style="color: black;">同样</span>,区别只是303<span style="color: black;">知道</span>客户端应该<span style="color: black;">运用</span>GET<span style="color: black;">拜访</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(7) 304 Not Modified <span style="color: black;">暗示</span>客户端发送附带<span style="color: black;">要求</span>的请求(GET<span style="color: black;">办法</span>请求报文中的IF…)时,<span style="color: black;">要求</span>不满足 ,返回304时,不<span style="color: black;">包括</span>任何响应主体</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(8) 307 Temporary Redirect 临时重定向,和302有着相同含义 ,尽管302标准禁止POST变为GET,但没人听他的 ,而307就会<span style="color: black;">按照</span>标准,不会从POST变为GET 但处理响应<span style="color: black;">行径</span>,各个浏览器可能<span style="color: black;">区别</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(9) 400 Bad Request <span style="color: black;">暗示</span>请求报文存在语法错误或参数错误,服务器<span style="color: black;">不睬</span>解 ,服务器<span style="color: black;">不该</span>该重复提交这个请求 ,需要修改请求内容后再次发送</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(10) 401 Unauthorized<span style="color: black;">暗示</span>发送的请求需要有HTTP认证信息<span style="color: black;">或</span>是认证失败了 ,返回401的响应必须<span style="color: black;">包括</span>一个适用于被请求资源的WWW-Authenticate首部以质询用户信息 ,浏览器初次接受401时,会弹出认证窗口</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(11) 403 Forbidden<span style="color: black;">暗示</span>对请求资源的<span style="color: black;">拜访</span>被服务器拒绝了 ,服务器<span style="color: black;">能够</span>对此作出解释,<span style="color: black;">亦</span><span style="color: black;">能够</span>不解释 ,想说明的话<span style="color: black;">能够</span>在响应实体的主体部分描述<span style="color: black;">原由</span> ,<span style="color: black;">例如</span>说你可能<span style="color: black;">无</span><span style="color: black;">拜访</span>权限</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(12) 404 Not Found<span style="color: black;">暗示</span>服务器找不到你请求的资源 ,<span style="color: black;">亦</span>可能服务器不想给你<span style="color: black;">而后</span>骗你找不到</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(13) 500 Internal Server Error<span style="color: black;">暗示</span>服务器执行请求的时候出错了 ,可能是Web应用有bug或临时故障 ,更有可能是服务器源代码有bug</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(14) 503 Service Unavailable<span style="color: black;">暗示</span>服务器超负载或正停机<span style="color: black;">守护</span>,<span style="color: black;">没法</span>处理请求 ,<span style="color: black;">倘若</span>服务器<span style="color: black;">晓得</span>还需要多<span style="color: black;">长期</span>,就写入Retry-After首部字段返回</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">关闭服务器签名</span></strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">为何</span>关闭服务器签名signature, 透露网站服务器带有服务器/PHP版本信息的签名会带来安全隐患,<span style="color: black;">由于</span>这将系统上的已知漏洞告诉给了攻击者。<span style="color: black;">因此呢</span>,<span style="color: black;">做为</span>服务器加固的一个部分,<span style="color: black;">剧烈</span><span style="color: black;">举荐</span>禁用所有网站服务器签名。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">Web安全之防范点击劫持</span></strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">点击劫持(clickjacking)又<span style="color: black;">叫作</span>为界面伪装攻击 (UI redress attack)是一种在网页中将恶意代码等<span style="color: black;">隐匿</span>在看似无害的内容(如按钮)之下<span style="color: black;">或</span>将透明的iframe覆盖在一个正常的网页上,并诱<span style="color: black;">运用</span>户点击的手段。<span style="color: black;">亦</span><span style="color: black;">能够</span>与 XSS 和 CSRF 攻击相结合,突破传统的防御<span style="color: black;">办法</span>,<span style="color: black;">提高</span>漏洞的<span style="color: black;">害处</span>程度。<span style="color: black;">经过</span>编辑.htaccess文件<IfModule mod_headers.c>Header always set X-FRAME-OPTIONS "DENY"</IfModule><span style="color: black;">能够</span>防止点击劫持的<span style="color: black;">出现</span>。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">CDN加速</span></strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">什么是CDN?</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">CDN的英文全<span style="color: black;">叫作</span>是Content Delivery Network,即内容分发网络,尽可能避开网络上有可能影响数据传输速度和稳定性的环节,使内容传输的更快、更稳定。CND加速<span style="color: black;">重点</span>是加速静态资源,如网站上面上传的<span style="color: black;">照片</span>、<span style="color: black;">媒介</span>,以及引入的<span style="color: black;">有些</span>Js、css等文件。CDN加速的最大优点是成本低,速度快。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">网站建设一段时间后,随着<span style="color: black;">拜访</span>量的<span style="color: black;">增多</span>,网站的加载速度回变慢,影响客户感受和蜘蛛的抓取,<span style="color: black;">运用</span>CDN网站加速,<span style="color: black;">能够</span>减少网络节点,<span style="color: black;">加强</span>网站的加载和运行速度。CDN加速是一种新型的网络构建方式,它是为了能在传统的IP网发布宽带丰富<span style="color: black;">媒介</span>而<span style="color: black;">尤其</span>优化的网络覆盖层;而从广义的<span style="color: black;">方向</span>,CDN<span style="color: black;">表率</span>了一种基于质量与秩序的网络服务模式。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;"><span style="color: black;">运用</span>CDN<span style="color: black;">重视</span>事项</span></strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">思虑</span>到外贸企业网站的服务器会<span style="color: black;">选取</span>在国外,<span style="color: black;">因此呢</span>不需要域名备案<span style="color: black;">就可</span><span style="color: black;">拜访</span>网站,<span style="color: black;">因此</span>大部分外贸企业都<span style="color: black;">无</span>备案域名,而中国有法律规定,境内的CDN必须要备案,即<span style="color: black;">倘若</span>做了CDN加速,想要在国内<span style="color: black;">亦</span><span style="color: black;">提高</span>速度的话,必须要备案<span style="color: black;">才可</span>生效,否则无效。<span style="color: black;">因此呢</span>,为了全面<span style="color: black;">思虑</span>网站的<span style="color: black;">拜访</span>速度,<span style="color: black;">意见</span>域名提前做好备案准备,<span style="color: black;">由于</span>备案<span style="color: black;">一般</span>需要15个工作日<span style="color: black;">上下</span>。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">阿里云域名备案:</span></strong></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-axegupay5k/edd0ad82f7f94ae88650ffd5e82cb01c~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1726118039&x-signature=iJF4l6WnbykHkZk96DT%2BKaIN5zI%3D" style="width: 50%; margin-bottom: 20px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">谷歌推广,只做有流量关键词营销</p>
</div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">详情请查阅:</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">https://beian.aliyun.com/?spm=5176.10695662.1kquk9v2l.3.72a05e10Muj7ex</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">SSL证书</span></strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">SSL证书是数字证书的一种,类似于驾驶证、护照和营业执照的电子副本。<span style="color: black;">由于</span>配置在服务器上,<span style="color: black;">亦</span><span style="color: black;">叫作</span>为SSL服务器证书。SSL 证书<span style="color: black;">便是</span>遵守 SSL协议,由受信任的数字证书<span style="color: black;">颁布</span><span style="color: black;">公司</span>CA,在验证服务器身份后<span style="color: black;">颁布</span>,<span style="color: black;">拥有</span>服务器身份验证和数据传输加密功能。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/3484d7d78bc54b6483e358c38e74a134~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1726118039&x-signature=QCNe1QxOk%2Fdgg%2FgjynV4EKNjNDw%3D" style="width: 50%; margin-bottom: 20px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">谷歌推广,只做有流量关键词营销</p>
</div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;"><span style="color: black;">重视</span>事项:</span></strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(1) SSL证书,<span style="color: black;">必定</span>要<span style="color: black;">选择</span>安全证书。证书由数字证书认证<span style="color: black;">公司</span> (CA) <span style="color: black;">颁布</span>,该<span style="color: black;">公司</span>会采取<span style="color: black;">相关</span><span style="color: black;">办法</span>,确认您的网站<span style="color: black;">位置</span><span style="color: black;">是不是</span>确实属于您的组织,从而<span style="color: black;">守护</span><span style="color: black;">拜访</span>者免受中间人攻击。在设置证书时,您<span style="color: black;">能够</span><span style="color: black;">选取</span> 2048 位密钥,来<span style="color: black;">保证</span>高级别的安全性。<span style="color: black;">倘若</span>所持证书的密钥(1024 位)安全性较弱,请将其升级到 2048 位。<span style="color: black;">选取</span>网站证书时,请<span style="color: black;">重视</span>以下几点:</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">① 从<span style="color: black;">供给</span>技术支持的<span style="color: black;">靠谱</span> CA 处获取证书。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">② 确定所需证书的类型:</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">③ 适用于单个安全源的单个证书(例如:www.example.com)。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">④ 适用于多个已知安全源的多网域证书(例如www.example.com、cdn.example.com、example.co.uk)。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">⑤ 适用于<span style="color: black;">拥有</span>多个动态子域名的安全源的通配型证书(例如:a.example.com、b.example.com)。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(2) <span style="color: black;">运用</span>服务器端 301 重定向</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">运用</span>服务器端 301 HTTP 重定向将用户和搜索引擎重定向至 HTTPS 网页或资源。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">更加多</span>详情,请查阅https://support.google.com/webmasters/answer/6073543?hl=zh-Hans</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">W3C验证</span></strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">W3C是英文 World Wide Web Consortium 的缩写,中文意思是W3C理事会或万维网联盟。W3C于1994年10月在麻省理工学院计算机科学实验室成立。创建者是万维网的发明者Tim Berners-Lee。 W3C组织是对网络标准制定的一个非赢利组织,像HTML、XHTML、CSS、XML的标准<span style="color: black;">便是</span>由W3C来定制。W3C会员(大约500名会员)<span style="color: black;">包含</span>生产技术<span style="color: black;">制品</span>及服务的厂商、内容供应商、团体用户、<span style="color: black;">科研</span>实验室、标准制定<span style="color: black;">公司</span>和政府<span style="color: black;">分部</span>,<span style="color: black;">一块</span>协同工作,致力在万维网发展方向上达成共识。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">W3C验证服务由World Wide Web Consortium(W3C)<span style="color: black;">供给</span>的验证服务<span style="color: black;">能够</span>为互联网用户<span style="color: black;">检测</span>HTML文件<span style="color: black;">是不是</span>附合HTML或XHTML标准。这<span style="color: black;">能够</span>向网页设计师<span style="color: black;">供给</span>快速<span style="color: black;">检测</span>网页错误的<span style="color: black;">办法</span>。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">W3C验证网址:https://validator.w3.org/</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">浏览器缓存</span></strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">浏览器缓存(Browser Caching)是为了节约网络的资源加速浏览。简单<span style="color: black;">来讲</span>,浏览器缓存<span style="color: black;">便是</span>把一个<span style="color: black;">已然</span>请求过的Web资源(如html页面,<span style="color: black;">照片</span>,js,数据等)拷贝一份副本储存在浏览器中。缓存会<span style="color: black;">按照</span>进来的请求<span style="color: black;">保留</span>输出内容的副本。当下一个请求来到的时候,<span style="color: black;">倘若</span>是相同的URL,缓存会<span style="color: black;">按照</span>缓存机制决定是直接<span style="color: black;">运用</span>副本响应<span style="color: black;">拜访</span>请求,还是向源服务器再次发送请求。比较<span style="color: black;">平常</span>的<span style="color: black;">便是</span>浏览器会缓存<span style="color: black;">拜访</span>过网站的网页,当再次<span style="color: black;">拜访</span>这个URL<span style="color: black;">位置</span>的时候,<span style="color: black;">倘若</span>网页<span style="color: black;">无</span>更新,就不会再次下载网页,而是直接<span style="color: black;">运用</span>本地缓存的网页。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">为何</span><span style="color: black;">运用</span>缓存:</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(1)减少网络带宽消耗</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">无论<span style="color: black;">针对</span>网站运营者<span style="color: black;">或</span>用户,带宽都<span style="color: black;">表率</span>着金钱,<span style="color: black;">太多</span>的带宽消耗,只会便宜了网络运营商。当Web缓存副本被<span style="color: black;">运用</span>时,只会产生极小的网络流量,<span style="color: black;">能够</span>有效的降低运营成本。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(2)降低服务器压力</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> 给网络资源设定有效期之后,用户<span style="color: black;">能够</span>重复<span style="color: black;">运用</span>本地的缓存,减少对源服务器的请求,间接降低服务器的压力。<span style="color: black;">同期</span>,搜索引擎的爬虫<span style="color: black;">设备</span>人<span style="color: black;">亦</span>能<span style="color: black;">按照</span>过期机制降低爬取的频率,<span style="color: black;">亦</span>能有效降低服务器的压力。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">(3)减少网络延迟,加快页面打开速度</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"> 带宽<span style="color: black;">针对</span>个人网站运营者<span style="color: black;">来讲</span>是<span style="color: black;">非常</span>重要,而<span style="color: black;">针对</span>大型的互联网<span style="color: black;">机构</span><span style="color: black;">来讲</span>,可能有时<span style="color: black;">由于</span>钱多而真的不在乎。那Web缓存还有<span style="color: black;">功效</span>吗?答案是肯定的,<span style="color: black;">针对</span><span style="color: black;">最后</span>用户,缓存的<span style="color: black;">运用</span>能够<span style="color: black;">显著</span>加快页面打开速度,达到更好的体验。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">内容<span style="color: black;">源自</span>:https://www.cnblogs.com/slly/p/6732749.html</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">www<span style="color: black;">转</span></span></strong></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">做www<span style="color: black;">转</span>,<span style="color: black;">重点</span>是<span style="color: black;">思虑</span><span style="color: black;">区别</span>版本会给搜索引擎带来混乱和重复的内容,从而影响收录。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">从搜索引擎<span style="color: black;">方向</span>,不管是带www的网址还是不带www的网址,只要确定好任何一个版本,做好重定向设置,都不会影响收录与排名。从互联网搜索习惯来看,<span style="color: black;">通常</span><span style="color: black;">大众</span>习惯www开头输入网址,<span style="color: black;">因此</span>常规<span style="color: black;">状况</span>下,<span style="color: black;">咱们</span>默认<span style="color: black;">运用</span>www开头的网址,把不带www的重定向带www的网址上来。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">倘若</span>你之后想要更改首选网址,<span style="color: black;">亦</span>不会对谷歌优化产生影响,只要<span style="color: black;">保证</span>重定向设置正确,且更改好内部链接<span style="color: black;">就可</span>。</span></p>
你的话语真是温暖如春,让我心生感激。 网站建设seio论坛http://www.fok120.com/
页:
[1]