From 808ba256d29c2b88c70c9b9be8a23f24309b45fc Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Mon, 1 Jul 2024 12:34:39 +0300 Subject: [PATCH] vault backup: 2024-07-01 12:34:39 --- .obsidian/plugins/home-tab/data.json | 6 +++--- _inbox/Кэширование статики в Nginx.md | 8 ++------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.obsidian/plugins/home-tab/data.json b/.obsidian/plugins/home-tab/data.json index 9c414fce..b4ee85a6 100644 --- a/.obsidian/plugins/home-tab/data.json +++ b/.obsidian/plugins/home-tab/data.json @@ -24,12 +24,12 @@ "unresolvedLinks": false, "recentFilesStore": [ { - "filepath": "_inbox/Настройка клиентского кэширования в Nginx.md", - "timestamp": 1719826052271 + "filepath": "_inbox/Кэширование статики в Nginx.md", + "timestamp": 1719826234779 }, { "filepath": "_inbox/Кэширование на стороне Nginx.md", - "timestamp": 1719826046767 + "timestamp": 1719826222287 }, { "filepath": "_inbox/Кэширование.md", diff --git a/_inbox/Кэширование статики в Nginx.md b/_inbox/Кэширование статики в Nginx.md index 2edb75b2..579cfc24 100644 --- a/_inbox/Кэширование статики в Nginx.md +++ b/_inbox/Кэширование статики в Nginx.md @@ -20,14 +20,10 @@ server { ... # Media - location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|mp4|ogg|ogv|webm|htc|)$ { + location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|mp4|ogg|ogv|webm|htc|css|js)$ { expires 365d; access log off; - } - - # CSS and Js - location ~* \.()$ { - expires 365d; + add header Cache-Control public } ...