mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	Update cache for thumbnail
This commit is contained in:
		
							parent
							
								
									25848b78f9
								
							
						
					
					
						commit
						b3a82b1b20
					
				@ -15,6 +15,7 @@ import {
 | 
			
		||||
  HttpCode,
 | 
			
		||||
  BadRequestException,
 | 
			
		||||
  UploadedFile,
 | 
			
		||||
  Header,
 | 
			
		||||
} from '@nestjs/common';
 | 
			
		||||
import { JwtAuthGuard } from '../../modules/immich-jwt/guards/jwt-auth.guard';
 | 
			
		||||
import { AssetService } from './asset.service';
 | 
			
		||||
@ -143,6 +144,7 @@ export class AssetController {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @Get('/thumbnail/:assetId')
 | 
			
		||||
  @Header('Cache-Control', 'max-age=300')
 | 
			
		||||
  async getAssetThumbnail(
 | 
			
		||||
    @Response({ passthrough: true }) res: Res,
 | 
			
		||||
    @Param('assetId') assetId: string,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user