2024-12-23 15:12:26: merge [main:dacfea26ca909774d33e18638512646c266aca24];
This commit is contained in:
1 parent
23b9e1a1f0
commit
a7ec8b9489
4 files changed
+43
-3
No files matched your search
@@ -1,3 +1,5 @@
|
||||
## 0.18.8
|
||||
- Добавлено кеширование статики для nginx
|
||||
## 0.18.7
|
||||
- Включена поддержка кэширования зависимостей через Docker
|
||||
- Добавлен файл конфигурации nginx
|
||||
|
||||
@@ -4,6 +4,9 @@ server {
|
||||
root /opt/msp/isp-admin-ui/;
|
||||
|
||||
location / {
|
||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||
add_header Pragma "no-cache"; # Для совместимости с HTTP/1.0
|
||||
expires off;
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
|
||||
@@ -15,4 +18,39 @@ server {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
location /assets/ {
|
||||
gzip on;
|
||||
gzip_comp_level 6;
|
||||
gzip_min_length 256;
|
||||
gzip_types text/plain text/css application/javascript application/json application/xml application/xml+rss text/javascript image/x-icon;
|
||||
gzip_vary on;
|
||||
gzip_disable "msie6"; # Отключение Gzip для устаревших версий Internet Explorer
|
||||
|
||||
add_header Cache-Control "public, max-age=604800, immutable"; # 1 неделя
|
||||
}
|
||||
|
||||
# Кэширование для шрифтов и изображений (1 неделя)
|
||||
location ~* \.(?:ico|png|jpg|jpeg|svg|gif|webp|ttf|woff|woff2|otf|eot)$ {
|
||||
gzip on;
|
||||
gzip_comp_level 6;
|
||||
gzip_min_length 256;
|
||||
gzip_types text/plain text/css application/javascript application/json application/xml application/xml+rss text/javascript image/x-icon;
|
||||
gzip_vary on;
|
||||
gzip_disable "msie6"; # Отключение Gzip для устаревших версий Internet Explorer
|
||||
|
||||
add_header Cache-Control "public, max-age=604800, immutable"; # 1 неделя
|
||||
}
|
||||
|
||||
# Кэширование JS и CSS (1 неделя)
|
||||
location ~* \.(?:js|css)$ {
|
||||
gzip on;
|
||||
gzip_comp_level 6;
|
||||
gzip_min_length 256;
|
||||
gzip_types text/plain text/css application/javascript application/json application/xml application/xml+rss text/javascript image/x-icon;
|
||||
gzip_vary on;
|
||||
gzip_disable "msie6"; # Отключение Gzip для устаревших версий Internet Explorer
|
||||
|
||||
add_header Cache-Control "public, max-age=604800, immutable"; # 1 неделя
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "isp-admin-ui",
|
||||
"version": "0.18.6",
|
||||
"version": "0.18.8",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "isp-admin-ui",
|
||||
"version": "0.18.6",
|
||||
"version": "0.18.8",
|
||||
"dependencies": {
|
||||
"@apidevtools/json-schema-ref-parser": "^9.0.6",
|
||||
"@monaco-editor/react": "^4.6.0",
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "isp-admin-ui",
|
||||
"private": true,
|
||||
"version": "0.18.7",
|
||||
"version": "0.18.8",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
|
||||
Reference in new issue
Block a user