mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 08:20:14 +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
12
.env.example
12
.env.example
|
|
@ -425,6 +425,18 @@ FIREBASE_APP_ID=
|
|||
ALLOW_SHARED_LINKS=true
|
||||
ALLOW_SHARED_LINKS_PUBLIC=true
|
||||
|
||||
#==============================#
|
||||
# Static File Cache Control #
|
||||
#==============================#
|
||||
|
||||
# Leave commented out to use default of 1 month for max-age and 1 week for s-maxage
|
||||
# NODE_ENV must be set to production for these to take effect
|
||||
# STATIC_CACHE_MAX_AGE=604800
|
||||
# STATIC_CACHE_S_MAX_AGE=259200
|
||||
|
||||
# If you have another service in front of your LibreChat doing compression, disable express based compression here
|
||||
# DISABLE_COMPRESSION=true
|
||||
|
||||
#===================================================#
|
||||
# UI #
|
||||
#===================================================#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue