zoukankan      html  css  js  c++  java
  • URL 优化的一个技巧

    When generating hyperlinks, always include a trailing slash if possible. For instance, navigating to http://msdn.microsoft.com/ie takes one more roundtrip than http://msdn.microsoft.com/ie/. When the browser navigates to the /ie url, the server merely sends down a 301 to the /ie/ url. Both links work, but the second version is faster.

    也就是说,在地址栏中发送 URL:http://msdn.microsoft.com/ie ,服务器将会产生一个 301 转向至 http://msdn.microsoft.com/ie/。

    所以直接发送 URL:http://msdn.microsoft.com/ie/ 速度将会更快,当然这种速度是感觉不到的,但优化应该“尽可能”。

  • 相关阅读:
    python笔记-2
    python笔记-1
    生成列表
    内置函数
    装饰器、包的导入
    python3 编码
    python3 初识函数
    python3 文件读写
    python3 流程控制
    python3 数据类型
  • 原文地址:https://www.cnblogs.com/analyzer/p/1203060.html
Copyright © 2011-2022 走看看