Wordpress LScache Plugin: Exclude files from CDN
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello, Thank you very much for your plugin. I am using it with a hosting provider. Listen, I use the CDN function too. I have this issue: Access to Font at https://s9w9v6y3.map2.cdn.net/italy/wp-content/themes/theme/fonts/AlexBrush-Regular.ttf’ from origin https://domain.it’ has been blocked by CORS policy: The Access-Control-Allow-Origin header contains multiple values , , but only one is allowed. So, I thought to exclude that font for a rapid fix using your exclude field in the CDN section with different combinations https://ibb.co/9srmkq8 I tried: /italy/wp-content/themes/theme/fonts/AlexBrush-Regular.ttf /fonts/AlexBrush-Regular.ttf and different ones without to fixed. Could you help me to fix this issue? You say: Paths containing these strings will not be served from the CDN. One per line. But How? Thank you very much for what you are doing. Hi, Could you please make sure you have purged all after you made change ? and also please provide the report number. Best regards, Hello, thanks for your support. I have tried to purge all on my server, on the cdn server without fixing the issue. Even if I say to your plugin to exclude from the cdn the AlexBrush-Regular.ttf it continues to look it as a cdn resource. So, the only way to fix this it has been to delete the .ttf extension from my cors rules in the htaccess. I Hope this helps. Regards. Hi, The Access-Control-Allow-Origin header contains multiple values , , but only one is allowed. maybe you sent multiple CORS ? Best regards, Hi, I checked this with my hosting provider. The only Cors occurrence is below one. I canceled the TTF extension to fix the issue. If you can improve the CDN exclusion function, it will be very useful. Thanks for what you are doing. My Cors code: ### marker CORS start ### Header set Access-Control-Allow-Origin ### marker CORS end ### Hi, thanks , albeit this seems to be weird that .ttf needs to be removed from rule , but we will keep eye on it. Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference