mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	Add sw caching for logo/favicon.
This commit is contained in:
		
							parent
							
								
									7e573076ba
								
							
						
					
					
						commit
						ba54c3fa79
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -9,7 +9,11 @@ module.exports = {
 | 
				
			||||||
        workboxOptions: {
 | 
					        workboxOptions: {
 | 
				
			||||||
            navigateFallback: 'index.html',
 | 
					            navigateFallback: 'index.html',
 | 
				
			||||||
            skipWaiting: true,
 | 
					            skipWaiting: true,
 | 
				
			||||||
            importWorkboxFrom: 'local'
 | 
					            importWorkboxFrom: 'local',
 | 
				
			||||||
 | 
					            runtimeCaching: [{
 | 
				
			||||||
 | 
					                urlPattern: /\.(?:png|svg|ico)$/,
 | 
				
			||||||
 | 
					                handler: 'CacheFirst',
 | 
				
			||||||
 | 
					            }],
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue