代码如下, 为什么base64的图片用谷歌浏览器打开,发现产生了2次请求.



 <!DOCTYPE html>
<html>
    <head>
        <title>Hello, World</title>
        <link rel="stylesheet" href="/style_b629f5d.css">
    </head>
    <body>
    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAL0UExURQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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MGb8tkdH+mspDdrXDwH/rc4bW/4w9v+AS37Bdvy80JoDgBXJHtRT8PYSzbjvm6PtpyHEgng2ZKX+cfcvJhzMWG/JRyt3GYYw0tjjrN9QBeyY8qVobaA6Td2Jg9zb623cBHZPAXTCTJUiTKkQEyK1WwHLkYF769BIM/AbKJKeoaYTSmgGrmI94gavkBwM/hzJpZfkMDBMvXMYz3qgXOC9XAD5rZsGTKGiI5P9DlMWNbVS2m2NmkZo6Bw0+DzGpEoC36LMC66k3EgXIfhq8U8IKDX5eH7CttfgbORrcLAvc1P/gn+VdMQ6Iql/Ah3G+qCDgruGmOgkcOqUfwNNBk5SUxSglltO9uf0AhlWRpFzmuNiBAUs6kKcPbG3YM3bXAxyeYqaTcy/ZGwTuOWVhxpVOs3QEuLA/HQhMyhHgpgEGO89AgPXy1fsp8GW9rtjqCcAqpbFStzcrjfEWCvwlbmysApqNdW4JJ8+4oizWH5xoHmgSaFpCn9ReLjPZPY0qAmf7mgSaf8Eo7S0zMSlrYKo6VaaBJjwJ9NYffIlSeIM+cUREmVTVpHWHRJSpH3gmpfCceMxFvU7xctXfgTxNYNq/9aHBJ8EKhmME/BlTlcMDOyRcZh4ILl0QNCTo5jqRWkoUqZDKlJn8Y/YN0UnQkET2xRLZvO8i42njSJMwmXVahT2TZ/K7lP8DwEtjrRbRr3EAAAAASUVORK5CYII=">
    <div>
      FIS3 面向前端的工程构建工具
      <ul>
        <li class="list-1">构建</li>
        <li class="list-2">调试</li>
      </ul>
    </div>
        <script type="text/javascript" src="/app_7a6a2a6.js"></script>
    </body>
</html>

图片描述

为什么base64的图片用谷歌浏览器打开,发现产生了2次请求.

fis3 前端 请求

不是出来卖的 9 years, 6 months ago

Your Answer