mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Fix bug where safari and firefox cache image for too long (#17148)
This commit is contained in:
		
							parent
							
								
									fe078666c6
								
							
						
					
					
						commit
						2313b8ea05
					
				@ -78,7 +78,10 @@ export default function AutoUpdatingCameraImage({
 | 
			
		||||
    let baseParam = "";
 | 
			
		||||
 | 
			
		||||
    if (periodicCache && !isCached) {
 | 
			
		||||
      baseParam = "store=1";
 | 
			
		||||
      const date = new Date(key);
 | 
			
		||||
      date.setMinutes(date.getMinutes() - (date.getMinutes() % 10), 0, 0);
 | 
			
		||||
 | 
			
		||||
      baseParam = `store=1&cache=${date.getTime() / 1000}`;
 | 
			
		||||
    } else {
 | 
			
		||||
      baseParam = `cache=${key}`;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user