什么是一个网页的F5(刷新)之间的差异,并粘贴该URL在新窗口? [英] What is the difference between an F5 (refresh) of a page and pasting that URL in a new window?

查看:142
本文介绍了什么是一个网页的F5(刷新)之间的差异,并粘贴该URL在新窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是页面的F5(刷新)之间的差异,并粘贴该URL在新窗口中,点击进入?

What is the difference between an F5 (refresh) of a page and pasting that URL in a new window and clicking enter?

任何帮助是pciated AP $ P $

Any help is appreciated

推荐答案

这取决于缓存策略的页面,并用于在第一时间获取页面的方法。如果您是通过POST获取的页面,刷新会重新发送POST数据,同时把URL在新窗口中会发出GET到服务器。

It depends on the caching policy for the page and the method used for fetching the page in the first place. If you fetched the page via a POST, a refresh will re-send the POST data while putting the URL in a new window will issue a GET to the server.

如果原来的请求是GET,行为取决于当前页进行高速缓存。击中刷新将导致浏览器检查回来的服务器页面(但不一定任何脚本或图像)。如果页面设置为可缓存然后粘贴在新窗口中的网址很可能只是拉页输出缓存没有击中服务器。

If the original request is a GET, the behaviour depends on how the current page is cached. Hitting refresh will cause the browser to check back with the server for the page (but not necessarily any scripts or images). If the page is set to be cacheable then pasting the URL in a new window might well just pull the page out of cache without hitting the server.

请注意,与服务器检查不一定会导致页面重新生成或重新下载的浏览器可以发出有条件的GET或HEAD请求检查是否页面已自去年获取的实际改变。此外,虽然一些行动可能会从缓存中拉页,也不能保证它会(动态生成的页面通常要正确设置要考虑缓存的话)。

Note that checking with the server won't necessarily cause the page to be regenerated or redownloaded as the browser can issue a conditional GET or a HEAD request to check whether the page has actually changed since last fetched. Also, while some of the actions might pull the page from the cache, there's no guarantee it will (and dynamically generated pages usually have to be set up properly to be considered cacheable at all).

这篇关于什么是一个网页的F5(刷新)之间的差异,并粘贴该URL在新窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆