简体   繁体   English

HTML文件中的Cache-Control元标记的范围

[英]Scope of Cache-Control meta tag in HTML file

When declaring 申报时

<meta http-equiv="Cache-Control" content="no-store">

inside the head tag of an HTML file which scope does this statement have? 在HTML文件的head标签中,此语句的作用范围是什么?

Does it mean that all other files referenced in this document (like JavaScript or CSS files) shouldn't be cached either? 这是否意味着也不应缓存本文档中引用的所有其他文件(例如JavaScript或CSS文件)?

Or does it just refer to the current HTML file? 还是只引用当前的HTML文件?

The http-equiv attribute provides an HTTP header for the information/value of the content attribute. http-equiv属性为内容属性的信息/值提供HTTP标头。

The http-equiv attribute can be used to simulate an HTTP response header. http-equiv属性可用于模拟HTTP响应标头。

see HTML http-equiv Attribute 请参见HTML http-equiv属性

As mentioned in another answer this only seems to affect the current page. 如另一个答案中所述,这似乎只影响当前页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM