我正在使用Laravel Page Speed。
该库在我的管理页面中以某些样式创建了许多问题,我想跳过这些问题。
//config/laravel-page-speed.php
//You can use * as wildcard.
'skip' => [
'*.pdf', //Ignore all routes with final .pdf
'*/downloads/*',//Ignore all routes that contain 'downloads'
'assets/*', // Ignore all routes with the 'assets' prefix
];
但是当我想跳过我的管理网址时,什么都没有改变
'skip' => [
'*/admin/*',
];
您对这个问题有任何想法吗?
更新:更改后,我还会运行这些命令
php artisan config:cache
php artisan cache:clear
答案 0 :(得分:1)
您的语法有误。应该是这样的:
'skip' => [
'admin\*'
];
从Github检查此问题:
https://github.com/renatomarinho/laravel-page-speed/issues/45