mirror of
				https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
				synced 2025-10-30 19:46:49 +00:00 
			
		
		
		
	add comments and docs to sw.js,
add service worker ADR
This commit is contained in:
		
							
								
								
									
										19
									
								
								specs/adrs/120222-serviceworker-netfirst.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								specs/adrs/120222-serviceworker-netfirst.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| # Use a network first cache second for service worker architecture  | ||||
|  | ||||
| - Status: in consideration | ||||
| - Deciders: Arthur Lu | ||||
| - Date: 12 / 02 / 22 | ||||
|  | ||||
| ## Decision Drivers | ||||
|  | ||||
| - Need to balance the need for user ease of use and local first priority | ||||
| - Users should expect to update their app easily when they have network, but may not be expected to know how to perform a hard refresh | ||||
| - Local first priority means we should avoid unnecessary network activity when possible | ||||
|  | ||||
| ## Considered Options | ||||
| - Network first cache second | ||||
| - Cache first network second | ||||
|  | ||||
| ## Decision Outcome | ||||
|  | ||||
| Chosen Option: TBD | ||||
		Reference in New Issue
	
	Block a user