arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.00760cs.NIcs.DL
收藏

缓存HTTP 404响应可消除不必要的存档重放请求

Caching HTTP 404 Responses Eliminates Unnecessary Archival Replay Requests

Kritika Garg, Himarsha R. Jayanetti, Sawood Alam, Michele C. Weigle, Michael L. Nelson

摘要:

在重放时,存档网页上的JavaScript可能会生成重复的HTTP请求,从而导致对Web存档的不必要流量。在一个例子中,一个存档的页面平均每分钟有超过1000个请求。这些请求对用户不可见,因此如果用户在浏览器选项卡中打开这样的存档页面,他们将不知道他们的浏览器正在继续生成Web存档的流量。我们发现需要定期更新的网页(例如,无线电播放列表、体育比分的更新、图像轮播)更有可能做出这样的重复请求。如果网页请求的资源未存档,则某些Web存档可能会尝试通过从实时Web请求资源来修补存档。如果请求的资源在实时网络上不可用,则资源无法存档,并且响应仍然是HTTP 404。一些存档的页面继续像在实时Web上一样频繁地轮询服务器,而一些页面在请求返回HTTP 404响应时会更频繁地轮询服务器,从而产生大量不必要的流量。在很大程度上,这样的网页实际上是对Web存档的拒绝服务攻击。Web存档需要大量的计算、网络和存储资源来存档页面,然后成功地重放页面,就像它们在实时Web上一样,这些资源不应该花费在不必要的HTTP流量上。我们提出的解决方案是使用Cache-Control HTTP响应头优化归档重放。我们在测试环境中实现了这种方法,并缓存了HTTP 404响应,以防止浏览器的请求到达Web存档服务器。

英文摘要:

Upon replay, JavaScript on archived web pages can generate recurring HTTP requests that lead to unnecessary traffic to the web archive. In one example, an archived page averaged more than 1000 requests per minute. These requests are not visible to the user, so if a user leaves such an archived page open in a browser tab, they would be unaware that their browser is continuing to generate traffic to the web archive. We found that web pages that require regular updates (e.g., radio playlists, updates for sports scores, image carousels) are more likely to make such recurring requests. If the resources requested by the web page are not archived, some web archives may attempt to patch the archive by requesting the resources from the live web. If the requested resources are unavailable on the live web, the resources cannot be archived, and the responses remain HTTP 404. Some archived pages continue to poll the server as frequently as they did on the live web, while some pages poll the server even more frequently if their requests return HTTP 404 responses, creating a high amount of unnecessary traffic. On a large scale, such web pages are effectively a denial of service attack on the web archive. Significant computational, network and storage resources are required for web archives to archive and then successfully replay pages as they were on the live web, and these resources should not be spent on unnecessary HTTP traffic. Our proposed solution is to optimize archival replay using Cache-Control HTTP response headers. We implemented this approach in a test environment and cached HTTP 404 responses that prevented the browser's requests from reaching the web archive server.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑