From dc7c18691bd72659d92077e8d39f6c254739f8d1 Mon Sep 17 00:00:00 2001 From: F4ilji Date: Mon, 26 May 2025 12:23:46 +0500 Subject: [PATCH] fix bugs --- _docker/nginx/prod/conf.d/nginx.conf | 5 +---- .../Article/UI/WEB/Controllers/ShowPostController.php | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/_docker/nginx/prod/conf.d/nginx.conf b/_docker/nginx/prod/conf.d/nginx.conf index 0ab3bbf..b70e049 100644 --- a/_docker/nginx/prod/conf.d/nginx.conf +++ b/_docker/nginx/prod/conf.d/nginx.conf @@ -103,10 +103,7 @@ server { deny all; } - location ~* \.(css|js|jpg|jpeg|png|gif|ico|svg|woff|woff2|ttf|otf)$ { - expires 30d; - add_header Cache-Control "public, no-transform"; - } + # Блок для обновления Let's Encrypt (оставить!) location ^~ /.well-known/acme-challenge/ { diff --git a/app/Containers/Article/UI/WEB/Controllers/ShowPostController.php b/app/Containers/Article/UI/WEB/Controllers/ShowPostController.php index db95d8c..f3d3b8c 100644 --- a/app/Containers/Article/UI/WEB/Controllers/ShowPostController.php +++ b/app/Containers/Article/UI/WEB/Controllers/ShowPostController.php @@ -6,10 +6,11 @@ use App\Containers\Article\Models\Post; use App\Containers\Article\UI\WEB\Transformers\PostItemResource; use App\Ship\Enums\CacheKeys; use App\Ship\Contracts\SeoServiceInterface; - use Carbon\Carbon; use Illuminate\Support\Facades\Cache; use Inertia\Inertia; +use Illuminate\Http\Request; + class ShowPostController extends \App\Ship\Controllers\Controller