Set no-cache on unfurl failure fallback response
This commit is contained in:
		
							parent
							
								
									b7474b29e4
								
							
						
					
					
						commit
						ab8386adea
					
				@ -251,6 +251,7 @@ class Server {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      if (!img) {
 | 
					      if (!img) {
 | 
				
			||||||
        // send local fallback image file
 | 
					        // send local fallback image file
 | 
				
			||||||
 | 
					        res.set('Cache-control', 'no-cache');
 | 
				
			||||||
        res.sendFile(nodejsPath.join(__dirname, matchedRoute.fallbackImg));
 | 
					        res.sendFile(nodejsPath.join(__dirname, matchedRoute.fallbackImg));
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
        res.contentType('image/png');
 | 
					        res.contentType('image/png');
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user