我知道这个问题被问了好几次。但我仍然不清楚这个概念。在阅读了很多博客和答案之后,我得到的是,
Expiry headers are used when you don’t even want client (and proxies/caches) to make a request to
the server. In ETAG, the client will check with the server for the update, but in expiry
headers, the client will know, when to expire the file and chec
对于MVC ASP.NET应用程序,我将以以下方式将javascript文件添加到_Layout.cshtml文件中-
function loadJS() { var el = document.createElement("script"); el.src = "/Scripts/script.js"; document.body.appendChild(el); } if (window.addEventListener)