mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
⚡ feat: Static File Caching (#3455)
* add static file cache * disable compression env variable
This commit is contained in:
parent
020c4a1a0e
commit
e4ac42f034
6 changed files with 99 additions and 5 deletions
|
|
@ -1,7 +1,8 @@
|
|||
const express = require('express');
|
||||
const staticCache = require('../utils/staticCache');
|
||||
const paths = require('~/config/paths');
|
||||
|
||||
const router = express.Router();
|
||||
router.use(express.static(paths.imageOutput));
|
||||
router.use(staticCache(paths.imageOutput));
|
||||
|
||||
module.exports = router;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue