Skip to content

[软技能] 第299天 说说你对304缓存的理解 #1879

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

第299天 说说你对304缓存的理解

我也要出题

Activity

renqi1996

renqi1996 commented on Feb 27, 2020

@renqi1996

协商缓存,告知浏览器本地缓存与服务器端资源一致,使用本地缓存

d4c-27

d4c-27 commented on Apr 13, 2022

@d4c-27

协商缓存: 向服务器发送请求,服务器会根据这个请求的request header的一些参数来判断是否命中协商缓存,如果命中,则返回304状态码并带上新的response header通知浏览器从缓存中读取资源;
请求头:if-modified-since if-none-match 与 响应头:last-modified etag 比较

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@renqi1996@d4c-27

        Issue actions

          [软技能] 第299天 说说你对304缓存的理解 · Issue #1879 · haizlin/fe-interview