Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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

Any help is appreciated

like image 443
Ben Avatar asked Apr 18 '09 22:04

Ben


People also ask

What does F5 refresh do?

In all modern Internet browsers, pressing F5 refreshes or reloads the page or document window. When pressing Ctrl + F5 , it forces a complete refresh of the web page, clearing the cache and downloading all contents of the page again.

What is the difference between Ctrl F5 and refresh?

F5 is a standard page reload. Ctrl + F5 refreshes the page by clearing the cached content of the page. Having the cursor in the address field and pressing Enter will also do the same as Ctrl + F5 .

What happens when you refresh a web page?

For example, if you are on a web page, refreshing the page displays the most recent content published on that page. Essentially, you're asking the site to send your computer the newest version of the page you're viewing. 2. The refresh button, also known as the refresh option, is a function of all Internet browsers.

Can you refresh your page if you press F5?

If you press F5 again, the page will refresh.


2 Answers

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.

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.

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).

like image 56
Andrew Aylett Avatar answered Oct 10 '22 10:10

Andrew Aylett


Refreshing a page does NOT explicitly refresh your cache. It will do a fresh GET, but anything cached stays cached. If you hit CTRL-F5, however, you'll refresh with a cache.

Copy and pasting will just get another fresh copy of the site with a GET, not ignoring cache.

like image 23
Anthony Avatar answered Oct 10 '22 11:10

Anthony