脾大是什么原因造成的怎么治疗| 小老弟是什么意思| 与会是什么意思| 赵雅芝是什么脸型| 吃什么帮助消化| 长发公主叫什么名字| 黑茶金花是什么菌| 黄片是什么| 滴虫性阴道炎吃什么药| 什么样的西瓜| 艾斯挫仑是什么药| 知己什么意思| 血脂高吃什么食物好| 乙肝15阳性什么意思| 3月26日是什么节日| 涛字五行属什么| 大便不调是什么意思| 有点咳嗽吃什么药| 坐小月子可以吃什么水果| 牛巴是什么| 1月份是什么星座| 什么心所什么| 牙龈为什么会肿| 马首是瞻是什么生肖| 西瓜对人体有什么好处| 看甲沟炎挂什么科| 2001属什么生肖| 老年人血压忽高忽低是什么原因| 视而不见的意思是什么| 吃盐吃多了有什么危害| 运气是什么意思| 冬天怕冷夏天怕热是什么体质| 胃痉挛吃什么药好| 肠胃消化不好吃什么药| 什么时候打胎对身体伤害最小| 真菌怕什么消毒液| 湿疹抹什么药膏| mmp是什么意思| 十月二十三号是什么星座| 脱肛和痔疮有什么区别| cab是什么意思| 晚上睡觉多梦是什么原因| 肋骨疼是什么原因| 飞机烧的是什么油| 梦见小牛犊是什么预兆| 725是什么意思| 眉尾有痣代表什么| 林深时见鹿什么意思| 孩子吃什么有助于长高| 血热是什么原因引起的| 橙子什么季节成熟| 什么颜色的猫最旺财| 尿黄吃什么药| 痉挛是什么症状| 山药对人体有什么好处| 胸口疼是什么病的前兆| 执迷不悟是什么生肖| 什么是溶血性疾病| 什么是体制内的工作| 黑发晶五行属什么| 肾萎缩吃什么药好| 痢疾吃什么药效果最好| 心语是什么意思| 挂号特需是什么意思| 11月4号是什么星座| 什么是炎症| 副高是什么职称| 农历三月三是什么日子| 什么原因会导致尿路感染| 肝占位是什么意思| 草字头有什么字| 王菲什么星座| 知道是什么意思| 1988年出生是什么命| 狗能吃什么水果| 干咳吃什么药最有效| 千里共婵娟什么意思| 可孚属于什么档次| 雍正为什么不杀十阿哥| 1069是什么意思| 跑业务是什么工作| 血用什么能洗掉| 为什么老是睡不着| 毛主席属什么生肖| pending是什么状态| 好汉不吃眼前亏是什么意思| 倩字五行属什么| 西洋菜俗称叫什么| 参苓白术散治什么病| 偏头疼吃什么药好| 高代表什么生肖| 视网膜为什么会脱落| 体液是指什么| 颈椎不好挂什么科| 什么是性骚扰| ooxx是什么意思| 脑浆是什么颜色| 高筋面粉是什么意思| 什么是三公经费| 骨折恢复吃什么好| 一片哗然是什么意思| 水逆是什么意思| 今年56岁属什么生肖| 巧夺天工什么意思| 菊花茶为什么会变绿色| 检查hpv需要注意什么提前注意什么| 减肥该吃什么| 膀胱钙化是什么意思| 耐人寻味是什么意思| 英红九号是什么茶| 一个草字头一个氏念什么| 爱情是什么颜色的| 血压低容易得什么病| 发烧骨头疼是什么原因| macd是什么意思| 虢是什么意思| 白喉采取什么隔离| 母亲节可以做什么礼物| 倩字五行属什么| 一个马一个并念什么| 甲状腺结节什么引起的| 右眼跳代表什么| 海蓝之谜适合什么年龄| 什么交加| 心慌气短吃什么药最好| 帕金森吃什么药最好| 西瓜不可以和什么同食| 肺部纹理增粗是什么意思| 丞字五行属什么| 脸部过敏红痒抹什么药| 晚上睡觉喉咙干燥是什么原因| 九十岁老人称什么| 逼长什么样| 充电头什么牌子好| 送长辈什么礼物合适| 腮腺炎是什么症状| 肝胆湿热喝什么茶| 牛尾炖什么最好| 偶数和奇数是什么意思| 溜车是什么意思| sma是什么| 头痛眼睛痛什么原因引起的| 什么食物含铁量最高| hold on什么意思| 叉烧炒什么菜好吃| 膝盖酸软是什么原因| 倪妮和倪萍什么关系| 肝郁血虚吃什么中成药| 刚生完孩子的产妇吃什么好| 屏蔽一个人意味着什么| 阿姨的老公叫什么| 国老是什么中药| 平起平坐代表什么生肖| 被香灰烫了预示着什么| 高血压是什么意思| 什么是骨科| 宝宝吐奶是什么原因| 口腔扁平苔藓吃什么药好得快| 大姨妈期间不能吃什么东西| 呃逆什么意思| 冬日暖阳是什么意思| 梦见爬山是什么预兆| 来月经喝什么好| 宝宝大便有泡沫是什么原因| 甲状腺结节不能吃什么| 广州和广东有什么区别| 为什么会突然长体癣| 有恃无恐什么意思啊| 踏实是什么意思| 飘雪是什么茶| 什么烟| 盗窃是什么意思| 低密度结节是什么意思| 什么原因导致性功能减退| 女人胯骨疼是什么原因| 古人的婚礼在什么时候举行| 199是什么意思| 为什么一吃辣的就拉肚子| 报销凭证是什么| 02属什么| 尿失禁是什么症状| 吃什么补| 月经提前吃什么药| 58年属什么| 肾结石什么症状| 女m是什么意思| 精分是什么| 医保乙类是什么意思| 正月十八是什么星座| 子宫前位和子宫后位有什么区别| 风疹是什么样子图片| 苍蝇喜欢什么味道| 吃什么保养子宫和卵巢| 什么原因| 肝不好吃什么药效果好| 方法是什么意思| 莲子心有什么作用| 在干什么| 月子里能吃什么水果| 闻思修是什么意思| 湖北人喜欢吃什么菜| 回南天什么意思| 非洲有什么动物| 浑身没劲是什么原因| 吃什么药去体内湿气| 男人左眼跳是什么预兆| 什么石穿| 什么叫惊喜| 耳垂有折痕是什么原因| 你要做什么| 绝经是什么意思| 白衬衫太透里面穿什么| 胸口容易出汗是什么原因| 月经周期变短是什么原因| 以梦为马什么意思| 血脂低是什么原因| 自卑什么意思| 可惜是什么意思| qq邮箱的格式是什么| 日逼是什么意思| 72年是什么年| 鸟字旁的字大多和什么有关| 猛虎下山是什么意思| 容易犯困是什么原因| 转归是什么意思| 小孩积食吃什么药| 什么是原则性问题| 眼睛干涩发痒用什么药| 什么食物养肝护肝最好| cpu什么意思| 结婚下大雨是什么兆头| 阴盛格阳是什么意思| 性格内向的人适合做什么工作| 非议是什么意思| 秋天什么水果成熟| 什么情况下需要切除子宫| 肾病钾高吃什么食物好| 病毒四项检查都有什么| 93年什么命| 什么的天空飘着什么的白云| 肿瘤最怕什么| 出汗多是什么病| 淮山和山药有什么区别| 十里八乡什么意思| 艾特是什么意思| 血糖高可以喝什么饮料| 古驰是什么品牌| 检查血压挂什么科| 疱疹是什么| 前列腺素是什么| 咳嗽白痰吃什么药| 高血压早餐吃什么好| 手术后吃什么好| LOP是什么胎位| 眼睛为什么会肿| 豌豆黄是什么| 助听器什么牌子好| 碳水化合物是什么意思| 武当山求什么最灵| 女人为什么喜欢坏男人| 一颗颗什么| 心脏ct能检查出什么| 尿酸520属于什么水平| 6月9日什么星座| 百度Jump to content

内热是什么原因引起的

From Wikipedia, the free encyclopedia
百度 因此,曹操因一个“齿少名微”的司马懿,就派人佯装刺杀、微服私访、恫吓威逼,实在不合情理。

The ETag or entity tag is part of HTTP, the protocol for the World Wide Web. It is one of several mechanisms that HTTP provides for Web cache validation, which allows a client to make conditional requests. This mechanism allows caches to be more efficient and saves bandwidth, as a Web server does not need to send a full response if the content has not changed. ETags can also be used for optimistic concurrency control[1] to help prevent simultaneous updates of a resource from overwriting each other.

An ETag is an opaque identifier assigned by a Web server to a specific version of a resource found at a URL.[2] If the resource representation at that URL ever changes, a new and different ETag is assigned. Used in this manner, ETags are similar to fingerprints and can quickly be compared to determine whether two representations of a resource are the same.

ETag generation

[edit]

The use of ETags in the HTTP header is optional (not mandatory as with some other fields of the HTTP 1.1 header). The method by which ETags are generated has never been specified in the HTTP specification.

Common methods of ETag generation include using a collision-resistant hash function of the resource's content, a hash of the last modification timestamp, or even just a revision number.

In order to avoid the use of stale cache data, methods used to generate ETags should guarantee (as much as is practical) that each ETag is unique. However, an ETag-generation function could be judged to be "usable", if it can be proven (mathematically) that duplication of ETags would be "acceptably rare", even if it could or would occur.

RFC-7232 explicitly states that ETags should be content-coding aware, e.g.

ETag: "123-a" – for no Content-Encoding
ETag: "123-b" – for Content-Encoding: gzip

Some earlier checksum functions that were weaker than CRC32 or CRC64 are known to suffer from hash collision problems. Thus they were not good candidates for use in ETag generation.

Strong and weak validation

[edit]

The ETag mechanism supports both strong validation and weak validation. They are distinguished by the presence of an initial "W/" in the ETag identifier, as:

"123456789"   – A strong ETag validator
W/"123456789" – A weak ETag validator

A strongly validating ETag match indicates that the content of the two resource representations is byte-for-byte identical and that all other entity fields (such as Content-Language) are also unchanged. Strong ETags permit the caching and reassembly of partial responses, as with byte-range requests.

A weakly validating ETag match only indicates that the two representations are semantically equivalent, meaning that for practical purposes they are interchangeable and that cached copies can be used. However, the resource representations are not necessarily byte-for-byte identical, and thus weak ETags are not suitable for byte-range requests. Weak ETags may be useful for cases in which strong ETags are impractical for a Web server to generate, such as with dynamically generated content.

Typical usage

[edit]

In typical usage, when a URL is retrieved, the Web server will return the resource's current representation along with its corresponding ETag value, which is placed in an HTTP response header "ETag" field:

ETag: "686897696a7c876b7e"

The client may then decide to cache the representation, along with its ETag. Later, if the client wants to retrieve the same URL resource again, it will first determine whether the locally cached version of the URL has expired (through the Cache-Control and the Expire headers). If the URL has not expired, it will retrieve the locally cached resource. If it is determined that the URL has expired (is stale), the client will send a request to the server that includes its previously saved copy of the ETag in the "If-None-Match" field.[2]

If-None-Match: "686897696a7c876b7e"

On this subsequent request, the server may now compare the client's ETag with the ETag for the current version of the resource. If the ETag values match, meaning that the resource has not changed, the server may send back a very short response with a HTTP 304 Not Modified status. The 304 status tells the client that its cached version is still good and that it should use that.

However, if the ETag values do not match, meaning the resource has likely changed, a full response including the resource's content is returned, just as if ETags were not being used. In this case, the client may decide to replace its previously cached version with the newly returned representation of the resource and the new ETag.

ETag values can be used in Web page monitoring systems. Efficient Web page monitoring is hindered by the fact that most websites do not set the ETag headers for Web pages. When a Web monitor has no hints whether Web content has been changed, all content has to be retrieved and analyzed using computing resources for both the publisher and subscriber.

Mismatched ETag detection

[edit]

A buggy website can at times fail to update the ETag after its semantic resource has been updated. As of 2019, an example of a prominent such site is export.arxiv.org.[3] As a result, the incorrectly returned response is status 304, and the client fails to retrieve the updated resource. To detect such a buggy website:

  • Cache the response and ETag, assuming there is an ETag and that the response was not aborted.
  • For a subsequent request that would've included the If-None-Match header, do not send this header with perhaps a random 20% probability. With this probability, if the response returns an altered content but the same ETag as what was previously cached, mark the website as buggy and disable ETag caching for it. As a reminder, for a strong ETag, the content comparison can be byte-for-byte, whereas, for a weak ETag, it would check semantic equivalence only.

Tracking using ETags

[edit]

ETags can be used to track unique users,[4] as HTTP cookies are increasingly being deleted by privacy-aware users. In July 2011, Ashkan Soltani and a team of researchers at UC Berkeley reported that a number of websites, including Hulu, were using ETags for tracking purposes.[5] Hulu and KISSmetrics have both ceased "respawning" as of 29 July 2011,[6] as KISSmetrics and over 20 of its clients are facing a class-action lawsuit over the use of "undeletable" tracking cookies partially involving the use of ETags.[7]

Because ETags are cached by the browser and returned with subsequent requests for the same resource, a tracking server can simply repeat any ETag received from the browser to ensure an assigned ETag persists indefinitely (in a similar way to persistent cookies). Additional caching headers can also enhance the preservation of ETag data.[8]

ETags may be flushable by clearing the browser cache (implementations vary).

References

[edit]
  1. ^ "Editing the Web – Detecting the Lost Update Problem Using Unreserved Checkout". W3C Note. 10 May 1999.
  2. ^ a b "ETag – HTTP | MDN". developer.mozilla.org. Retrieved 10 October 2021.
  3. ^ "Mismatched export.arxiv.org ETag". Gist.
  4. ^ "tracking without cookies". 17 February 2003.
  5. ^ Ayenson, Mika D.; Wambach, Dietrich James; Soltani, Ashkan; Good, Nathan; Hoofnagle, Chris Jay (29 July 2011). "Flash Cookies and Privacy II: Now with HTML5 and ETag Respawning". SSRN 1898390.
  6. ^ Soltani, Ashkan (11 August 2011). "Flash Cookies and Privacy II". askhansoltani.org. Retrieved 27 June 2023.
  7. ^ Anthony, Sebastian (4 August 2011). "AOL, Spotify, GigaOm, Etsy, KISSmetrics sued over undeletable tracking cookies". ExtremeTech. Retrieved 27 June 2023.
  8. ^ "Cookieless cookies". GitHub lucb1e. 25 August 2013. Retrieved 27 June 2023.
[edit]
提高免疫力吃什么食物 淋巴吃什么药好 女性多囊是什么意思 amv是什么意思 长期喝苦荞茶有什么好处
养肺补肺吃什么药最好 不忘初心方得始终是什么意思 惊为天人是什么意思 蛔虫长什么样 肺部条索灶是什么意思
梦见修路是什么预兆 胃胀是什么原因导致的 尿道炎看什么科室好 尿素氮偏高是什么意思 膈肌痉挛是什么症状
脚浮肿吃什么药 什么是职业道德 表白送什么花 大健康是什么 婴儿口臭是什么原因引起的
没有美瞳护理液用什么代替hcv8jop0ns7r.cn 避孕环是什么样子图片hcv8jop0ns2r.cn 有容乃大什么意思hcv8jop0ns2r.cn 理气是什么意思hcv8jop8ns6r.cn 白细胞酯酶是什么意思naasee.com
幽门螺旋杆菌感染吃什么药hcv9jop4ns8r.cn 抗宫炎片主要治什么hcv9jop1ns2r.cn 36朵玫瑰花代表什么意思hcv8jop1ns4r.cn 酱牛肉放什么调料hcv8jop3ns3r.cn 斗是什么样子naasee.com
眼睛胀痛是什么原因ff14chat.com 渗透压是什么意思hcv9jop0ns2r.cn 尿路感染吃什么中成药hcv8jop6ns4r.cn 什么是生化hcv8jop8ns0r.cn 耳鸣吃什么药比较好hcv7jop5ns0r.cn
氨基酸是什么东西hcv9jop6ns2r.cn 手麻木是什么原因hcv8jop9ns9r.cn 尿道痒男吃什么消炎药hcv8jop2ns3r.cn 溜冰是什么意思hcv8jop0ns9r.cn 什么是阿尔兹海默症hcv7jop6ns1r.cn
百度