Editing 1854: Refresh Types

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 8: Line 8:
  
 
==Explanation==
 
==Explanation==
In this comic [[Randall]] presents five different levels of refresh operations for web applications. The first three (''soft refresh'', ''normal refresh'', and ''hard refresh'') are common operations to keep the content in the browser retrieved from the server up to date. The other two (''harder refresh'' and ''hardest refresh'') are fictional operations to perform ''refresh'' operations on remote resources. The terms are probably adopted from {{w|Reboot (computing)|soft}} and {{w|Hardware reset|hard reset}} operations used to restart broken computers or e.g. smartphones.
+
{{incomplete|This is chaos - multiple explanations should be merged and condensed. Do NOT delete this tag too soon.}}
  
=== Soft refresh ===
+
This lists five different ways of refreshing a page. The first three are real ways to refresh a page. The last two are absurd options that would give an ordinary user the power to make large changes to the places where data is hosted and/or the internet as a whole.
''Soft refresh'' refers to an operation in a web page, commonly known as {{w|Ajax (programming)|Ajax}}, that requests new information without reloading the entire page. The given example, {{w|Gmail}}, includes a feature that allows users to poll new emails and show it in the inbox interface. It is a command using {{w|JavaScript}} to load new contents from the server in the background and only update necessary components of the page. Modern web applications do this automatically in short time intervals such that these buttons are mostly unnecessary - for example, in Gmail, a user will see a new message instantly.
 
  
=== Normal refresh ===
+
The comic makes use of ambiguity of the term 'hard', which can mean both severity of an effect (on the scale of from resetting a part of a page, to the whole page, to its hosting provider and hosting infrastructure), and difficulty of triggering it (on the scale of having to input increasingly complex key combinations). (Think opposability of 'hard' to both 'soft' and 'easy'.)
The ''normal refresh'' is a browser operation that reloads the complete web page, text and other content that has changed since the original load will be updated. The operation can be triggered by refresh buttons in browsers, though it also can be requested using the common keyboard commands as listed by Randall. Many pages -- like the main page at xkcd.com -- don't have a refresh button. If the page has been opened before a new comic release, pressing F5 afterwards causes reload and the new comic is shown.
 
  
=== Hard refresh ===
+
The difference between the first two options: "soft refresh" and "normal refresh," is that Gmail (Google's email service) allows a user to "refresh" (update) their inbox with a "refresh" button accessed while at a web address, while a "normal refresh" involves pushing the browser's refresh button. The latter option is basically equivalent to closing the web page, then opening up a new window/tab in the browser and going to the same IP address; different websites would handle retaining a user's "logged in" status differently when this is done (often based on options the user selected), while any well-designed webpage would probably not log a user out for using a "soft refresh" on something like an e-mail inbox.
What Randall calls ''hard refresh'' is a less common browser operation forcing the browser to re-download every part of the web page, ignoring any cached content. Caching is a common way of decreasing web page load times. Browsers save resources such as images or {{w|Cascading Style Sheets|CSS stylesheets}} on the first visit on a web page and use the local copy on subsequent visits. It allows them to decrease amount of transfer needed to show the web page, but can prevent showing changes made to the resources (for example a web developer changing the stylesheet). In those cases the ''hard refresh'' ensures that each part of the website is downloaded in its newest form.
 
  
If there is a {{w|Proxy server|proxy}} or a cache (like used for this wiki) in between the browser and the server this type of refreshing may not work. In this case, unless a purge link is available, the user has to wait until the cache entry is expired and a new request to the web server is done. Some browsers may try to avoid this behavior by including special headers in the HTTP request to control caching, but not all proxies or clouds follow these instructions.
+
The third option, "hard refresh," refers to a keyboard shortcut to "refresh" their cached files associated with a webpage.
  
=== Harder refresh ===
+
The fourth option, "harder refresh," exaggerates the trend to a silly level by suggesting that a web page user would be allowed to press an increasingly implausible combination of buttons on their keyboard (including the non-standard '[https://askubuntu.com/questions/19558/what-are-the-meta-super-and-hyper-keys HYPER]' key, a feature of the {{w|Space cadet keyboard}}) to reset the power at the entire data center where the web server for the page they are viewing is hosted.
''Harder refresh'' is a joke that extends the existing naming scheme. The joke is that if a ''hard refresh'' resets the browser display and cache, a ''harder refresh'' should reset the source of the data by cycling power in the data center. Assuming no damage was done, this would reset the memory on the server, erasing any information that had not been written to disk, and setting the server to the state it was in at launch. This would cause considerable downtime, and would be unlikely to help the user at all.
 
  
In {{w|Orchestration (computing)|orchestrated}} environment it may indirectly cause some virtual machines in the {{w|Cloud computing|cloud}} to be rebooted and assigned to another web server needing more workload. But a growing workload is caused by hundreds or thousands additional requests and not just a single key combination from one browser. While there are administrative web tools allowing to perform a reboot (physical or virtual server) just by clicking a single button, this is not what is being referred to in the comic. A standard (non-administrative) user rebooting an actual physical server using a common web page is not possible, unless there is a software or operating system bug that will cause exactly this. This would be considered an extremely critical problem and its resolution would be given an extremely high priority by the server owners.
+
The fifth option, "hardest refresh," implies that if the user activated it, somehow the entire internet would start over from ARPANET, a network funded by the United States Department of Defense that predates the World Wide Web and is important when studying the early history of the internet. (ARPA stands for Advanced Research Projects Agency.) Obviously, this is impossible.
  
The ''harder refresh'' uses six keys, including the non-standard '[https://askubuntu.com/questions/19558/what-are-the-meta-super-and-hyper-keys HYPER]' key, a feature of the {{w|Space cadet keyboard}}. Hyper could also refer to the Linux modifier key Hyper, similar to Control, Alt, and Super.
+
The displayed keyboard shortcuts get longer for the "harder" options. Although probably intended for humor, this makes some sense, as options that are used less often might be assigned less convenient keyboard shortcuts, and the more drastic options (if they existed) might have very long keyboard shortcuts to prevent them from being activated by accident. The first few displayed shortcuts would actually work on many systems.
  
=== Hardest refresh ===
+
The title text envisions a security measure for the hypothetical godlike power of the "hardest refresh" that is like the security on missile launch systems. It references the comically long keyboard shortcut for listed for the "hardest refresh" that involves both the Windows key and the Command  key (AKA Pretzel key, formerly Apple Key), which would not normally be located on the same keyboard.  
The fifth option, ''hardest refresh'', moves beyond resetting the source of the data and resets the entire internet back to {{w|ARPANET}}, an early military network which was a forerunner to the modern internet. The implications of this are not made clear, but it should be noted that it wouldn't help to immediately fix any problems a user is experiencing in-browser, as {{w|HTTP}}, the protocol by which web pages are sent, was not developed until late 1990, the year ARPANET was decommissioned.
 
  
The ''hardest refresh'' shortcut uses fifteen keys, including non-standard ones such as Ø and ⏏. (The former is a key found on Danish and Norwegian keyboards, the latter is the "eject" key found on Mac keyboards and some laptops.) The shortcut makes amusing comparisons about a shortcut that includes not only the F5 function key, but also the keys for the letter "F" and the digit "5", as well as the similarity in appearance between O, 0, and Ø.
+
Web page developers must keep in mind an ever-increasing number of shortcuts to force a page to refresh more or less thoroughly, i.e. causing cached local resources to be deleted and re-set.  
  
The title text suggests that the inclusion of both the {{w|Windows key}} and {{w|Command key}} in the ''hardest refresh'' shortcut is a security measure akin to the {{w|Two-man rule}}, as it would require two keyboards to enter. Normally this would not work in practice as the modifier keys are handled per keyboard and not combined across keyboards for most operating systems allowing more than one keyboard.
+
The first option (soft refresh) uses the "refresh" button present as part of the Gmail interface to retrieve new messages from the server without reloading the whole webpage itself.
  
==Transcript==
+
The second option (normal refresh) uses a browser refresh button which causes the entire page to reload. This will inherently retrieve new messages from the server, but also must do other tasks required to present the page for the first time.
:[A table with three columns is shown. The header is:]
 
:Refresh Type; Example Shortcuts; Effect
 
  
:[First row:]
+
Randall jokingly proposes a fictional "harder still" refresh option is a fictional refresh that sends a command to the Google Gmail server causing the entire data center where the server lives to power down and reboot everything, the Gmail equivalent of "turning it off and on again." This command would be extremely inconvenient for other users, who would be locked out of their emails until the datacenter reboots.
:Soft Refresh
 
:[The word refresh has a border to mimic a button:]
 
:Gmail <span style="border: 1px solid black">REFRESH</span> Button
 
:Requests update within JavaScript
 
  
:[Second row:]
+
He goes on to propose a "hardest" refresh with a key combination resembling a 'cheat code' that causes the entire internet to be build anew from its origins in {{w|Arpanet}}.
:Normal Refresh
 
:[Two PC shortcuts and the Apple command key followed by an R:]
 
:F5, CTRL-R,  &#x2318;R
 
:Refreshes page
 
  
:[Third row:]
+
==Transcript==
:Hard Refresh
+
{{incomplete transcript|Do NOT delete this tag too soon. No table is the preferred version, just describe what's in the picture including the special keys.}}
:[One PC shortcut, the combination Control plus Shift, and the Apple command key followed by Shift and R:]
+
:{| class=wikitable
:CTRL-F5, CTRL-&#x21E7;,  &#x2318;&#x21E7;R  
+
! Refresh Type
:Refreshes page including cached files
+
! Example Shortcuts
 
+
! Effect
:[Fourth row:]
+
|-
:Harder Refresh
+
| Soft Refresh
:[One single combination using Control plus Shift plus Hyper plus Escape plus R plus F5:]
+
| Gmail <span style="border: 1px solid black">REFRESH</span> Button
:CTRL-&#x21E7;-HYPER-ESC-R-F5
+
| Requests update within Javascript
:Remotely cycles power to datacenter
+
|-
 
+
| Normal Refresh  
:[Fifth row:]
+
| F5, CTRL-R, &#x2318;-R
:Hardest Refresh  
+
|Refreshes page
:[One single combination using Control plus the Apple command key plus the Windows key plus Shift plus the hash key plus R plus F5 plus F plus 5 plus Escape plus the letter O plus a slashed zero plus a slashed letter O plus an eject sign plus Scroll Lock:]
+
|-
:CTRL-&#x2318;<span title="Windows key logo">&#x229E;</span>&#x21E7;#-R-F5-F-5-ESC-O-0-Ø-&#x23CF;-SCROLL LOCK  
+
|Hard Refresh
:Internet starts over from ARPANET
+
| CTRL-F5, CTRL-&#x21E7;,  &#x2318;-&#x21E7;-R  
 
+
| Refreshes page including cached files
==Trivia==
+
|-
 
+
|Harder Refresh  
* One of the shortcuts listed for Hard Refresh, “CTRL-&#x21E7;”, is incorrect – it should be “CTRL-&#x21E7;-R”.
+
| CTRL-&#x21E7;-HYPER-ESC-R-F5  
 +
| Remotely cycles power to datacenter
 +
|-
 +
|Hardest Refresh  
 +
|CTRL- &#x2318;<span style='font-family:wingdings' title="Windows key logo">ÿ</span>&#x21E7;#-R-F5-F-5-ESC-O-0-Ø-&#x23CF;-SCROLL LOCK  
 +
|Internet starts over from Arpanet
 +
|}
  
 
{{comic discussion}}
 
{{comic discussion}}

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)