Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

前端面试汇总-HTTP相关 #3

Open
helingjuan opened this issue Sep 5, 2020 · 0 comments
Open

前端面试汇总-HTTP相关 #3

helingjuan opened this issue Sep 5, 2020 · 0 comments
Labels

Comments

@helingjuan
Copy link
Owner

helingjuan commented Sep 5, 2020

前端面试汇总-HTTP相关

一. 网络模型等基础知识

1.1 网络的五层模型

1.2 什么是三次握手和四次挥手?以及他们的作用?

1.3 为什么建立连接是三次握手,而关闭连接却是四次挥手呢?

1.4 SYN攻击是什么?

  - 如何检测SYN攻击?
  - 如何防御?
  - 什么是半连接队列? 全连接队列?

1.5 什么是长连接?为什么需要长连接?

   - 长短连接的好处和缺点
   - 怎么实现长连接?
  - 为什么需要长连接?
  - 长连接的保活
  - TCP的KeepAlive机制和HTTP的KeepAlive的区别?

二. HTTP、HTTPS、HTTP2

  • 1 HTTP几个常见状态码
    • 2XX 成功
    • 3XX 重定向
    • 4XX 客户端错误
    • 5XX 服务端错误
  • 2 HTTP的基本概念
    • HTTP(HyperText Transfer Protocol)
      • 什么是HTTP的无状态性?
      • HTTP有哪些Method?
      • HTTP协议的风险
    1. HTTPS
    • https协议的工作原理
    • https协议的优缺点
    1. HTTP和HTTPS的区别?
    • HTTP连接的创建过程?以及为什么HTTPS 是安全的?
    1. HTTP2
    • HTTP2的信道复用为什么能提高性能?

三. 网络安全

3.1 什么是跨域?

3.2 CROS预请求验证

3.3 XSS 和CROS跨域问题

3.4. 什么是内容安全策略(CSP:Content-Security-Policy)?

3.5 jsonp 的作用

3.6 fetch发送2次请求的原因?

3.7 Cookie如何防范XSS的攻击

四. 代理服务器 Nginx

15.Nginx 代理的作用?

16. Nginx 代理

五. 浏览器相关

5.1 浏览器输入URL后HTTP请求返回的过程

5.2 输入url到页面加载都发生了什么?

5.3 在使用缓存后,代码更新js资源,但是客户端没有更新,要怎么解决?

5.4 一个图片url访问后直接下载怎么实现?

六. 其它

6.1 Web Quality(无障碍)

6.2 几个很实用的BOM属性对象方法

6.3 Cookie,SessionStorage,LocalStorage的区别

6.4 Cookie,Session的区别

@helingjuan helingjuan added the HTTP label Sep 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant