/dist). * Die Version steht in der Adresse – daher dürfen Browser lange zwischenspeichern. */ class PluginAssetController extends Controller { public function __invoke(PluginAssets $assets, string $slug, string $version, string $path): BinaryFileResponse { $file = $assets->file($slug, $path); abort_unless($file, 404); return response()->file($file, [ 'Content-Type' => PluginAssets::TYPES[strtolower(pathinfo($file, PATHINFO_EXTENSION))], 'Cache-Control' => 'public, max-age=31536000, immutable', 'X-Content-Type-Options' => 'nosniff', ]); } }