What's the difference between a “GET” request

2019-09-16 17:55发布

Is there any difference between doing a "GET" request (type URL and Enter) compared to simply refreshing (CtrlR) the page?

3条回答
狗以群分
2楼-- · 2019-09-16 18:16

Most browsers ignore the Expires header if we do a "page refresh", yet respect it if we do a "url visit".

However, different browsers have their own way of differentiating "refresh" and "url visit", the only way to be sure is to manually test each one of them.

查看更多
\"骚年 ilove
3楼-- · 2019-09-16 18:17

No, it is not simply a get request, because on a page that you've POSTed to (from a separate form), the browser will confirm with you that you want to refresh the page because it is a POST request.

As for your question, you'll need to provide specifics for debugging purposes.

查看更多
乱世女痞
4楼-- · 2019-09-16 18:25

It is simply telling the browser to repeat the page load, which implies repeating the GET or POST request. Some browsers will inform the server that 304 (not-modified) is an acceptable response, and the server can reply with a 304 HTTP response to inform the browser that it's cached contents are valid

查看更多
登录 后发表回答