Migrate Laysense to upstream LaySite 1.4.3 with external site data

This commit is contained in:
2026-11-27 17:47:31 +08:00
parent b8eb9b35eb
commit 1d2cb2ed1e
277 changed files with 9049 additions and 3222 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace App\Middleware;
use App\Content\Assets;
use Webman\Http\Request;
use Webman\Http\Response;
use Webman\MiddlewareInterface;
@@ -16,7 +17,7 @@ final class PublicAssets implements MiddlewareInterface
$path = $request->path();
if (str_starts_with($path, '/assets/')) {
$response->withHeader('Access-Control-Allow-Origin', '*');
if ($path === '/assets/jquery-4.0.0.min.js') {
if ($path === Assets::JQUERY) {
$response->withHeader('Cache-Control', 'public, max-age=31536000, immutable');
}
}