doulang9953 2018-03-28 19:01
浏览 35
已采纳

对服务器的查询(图像加载)

I have a simple question which I don't understand completely. So suppose I have the website on shared hosting, I have the main page which has 2 css files 2 js files, 35 images.

so question in when user open this page server must handle 'get query' + 2 queries for css + 2 queries to js + 35 queries to load images so we have 40 queries which we need to load a page?

So if we have another server for images, the main server could process more users which open web site?

  • 写回答

1条回答 默认 最新

  • dongle7882 2018-03-28 19:05
    关注

    so question in when user open this page server must handle 'get query' + 2 queries for css + 2 queries to js + 35 queries to load images so we have 40 queries which we need to load a page?

    Yes. However note that with proper configuration of your web server, subsequent hits from the same browser will be cached.

    So if we have another server for images, the main server could process more users which open web site?

    Generally, yes. Moving images to a separate host is a popular way to distribute load. Note that if you're not actually experiencing problems right now, then it's probably too early to worry about how you're going to implement a solution, especially if your content is all static files.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 MATLAB动图的问题
  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名