Add note
This commit is contained in:
		
							parent
							
								
									fde2782a9e
								
							
						
					
					
						commit
						8260464090
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -14,6 +14,7 @@ const app = new Koa();
 | 
				
			||||||
app.use(cors());
 | 
					app.use(cors());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
app.use(async (ctx, next) => {
 | 
					app.use(async (ctx, next) => {
 | 
				
			||||||
 | 
						// Cache 365days
 | 
				
			||||||
	ctx.set('Cache-Control', 'max-age=31536000, immutable');
 | 
						ctx.set('Cache-Control', 'max-age=31536000, immutable');
 | 
				
			||||||
	await next();
 | 
						await next();
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue