perf: implement caching of static files

This commit is contained in:
zyachel
2022-06-05 21:22:38 +05:30
parent 55c0eba6e4
commit 170fbabe5e
2 changed files with 8 additions and 2 deletions

View File

@@ -5,4 +5,6 @@ URL=http://localhost:3000
# enviorment
NODE_ENV=production
# change image quality
IMAGE_QUALITY=500
IMAGE_QUALITY=500
# cache duration for static assets(eg: '2.5 days', 3600, 2m)
CACHE_PERIOD=1h