Hi all
I’ve followed the Kirby Loves CDN recipe. Went very smooth, and it’s up and running.
I wanted to ask, is there a way to exclude a specific css, or js file from being loaded via CDN?
Hi all
I’ve followed the Kirby Loves CDN recipe. Went very smooth, and it’s up and running.
I wanted to ask, is there a way to exclude a specific css, or js file from being loaded via CDN?
You could exclude certain paths here:
if (option('cdn', false) !== false && Str::startsWith($path, 'assets')) {
return option('cdn.domain') . '/' . $path;
}
instead of accepting all which start with assets
Thank you I will try that.