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